Skip to content

Commit

Permalink
explicitly trigger CI job after push-pr (since pushes using GITHUB_TO…
Browse files Browse the repository at this point in the history
…KEN don't trigger workflows as per https://github.com/orgs/community/discussions/25702)
  • Loading branch information
twrichards committed May 13, 2024
1 parent 837fdd7 commit 1d60671
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
- pr*
jobs:
CI:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/push-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
steps:
- uses: actions/checkout@v4
- name: push-pr
Expand All @@ -25,3 +26,9 @@ jobs:
echo "Pushing PR merge commit for ${PR} to remote pr${PR} branch"
git fetch -f origin pull/${PR}/merge:pr${PR}
git push -f origin pr${PR}:pr${PR}
- name: trigger CI
env:
PR: ${{ inputs.prNumber }}
GH_TOKEN: ${{ github.token }}
run: gh workflow run ci.yml --ref pr${PR}

0 comments on commit 1d60671

Please sign in to comment.