Skip to content

Commit

Permalink
Trigger publish workflow on PRs that modify the publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FirelightFlagboy committed May 30, 2024
1 parent 04890a2 commit b61ddc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
types:
- published
- edited
pull_request:
paths:
- .github/workflows/publish.yml

# We set `concurrency` to prevent having this workflow being run on code that is not up-to-date on a PR (a user make multiple push in a quick manner).
# But on the main branch, we don't want that behavior.
Expand All @@ -27,7 +30,7 @@ concurrency:


env:
RELEASE_TAG: ${{ github.event_name == 'release' && github.ref_name || inputs.release_tag }}
RELEASE_TAG: ${{ (github.event_name == 'release' && github.ref_name) || (github.event_name == 'pull_request' && 'nightly') || inputs.release_tag }}

jobs:
publish:
Expand Down

0 comments on commit b61ddc8

Please sign in to comment.