Skip to content

Commit

Permalink
ci(release): prevent a manual run from creating a new release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Dec 24, 2023
1 parent bb7bcec commit be4c06d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ jobs:
release:
needs: [build-server, build-app]
runs-on: ubuntu-latest
if: github.ref_name == 'main'
# Prevents any manual run from triggering a new GH release
if: github.ref_name == 'main' && github.event_name == 'push'

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit be4c06d

Please sign in to comment.