Skip to content

Commit

Permalink
refactor: make event_name checking logic more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Jul 9, 2023
1 parent dedcb0c commit fe959d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:

jobs:
release:
name: Release
if: | # If event is a closed PR, only run if PR was merged
startsWith(github.event_name, 'workflow') ||
name: Release # if event is a closed PR, only run if PR was merged
if: |
github.event_name != 'pull_request' ||
github.event.pull_request.merged == true
uses: Nerdware-LLC/reusable-action-workflows/.github/workflows/release.yaml@main
secrets:
Expand Down

0 comments on commit fe959d2

Please sign in to comment.