Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ridhwaans committed Oct 28, 2024
1 parent 74da1f2 commit d7b40d6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: "Release"

on:
workflow_dispatch:
push:
branches:
- main
inputs:
create_release:
description: "Should this push create a release?"
required: true
default: "false"
type: boolean

jobs:
release:
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && github.event.inputs.create_release == 'true' }}
runs-on: ubuntu-24.04

steps:
Expand Down

0 comments on commit d7b40d6

Please sign in to comment.