Skip to content

Commit

Permalink
Merge pull request #2191 from habibayassin/pr-update-rules
Browse files Browse the repository at this point in the history
gha: update rules use pr id
  • Loading branch information
vvbandeira authored Jul 25, 2024
2 parents d810a22 + cc67de3 commit d87f5b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-actions-update-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
git fetch
git checkout ${{ github.event.client_payload.branch }}
git checkout "origin/pr/${{ github.event.client_payload.branch }}"
- uses: actions/setup-python@v4
with:
python-version: "3.10"
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
name: update rules pr
id: remote-update-pr
run: |
git push origin ${{ github.event.client_payload.branch }}
git push origin "refs/pull/${{ github.event.client_payload.branch }}/head"
- if: "steps.remote-update.outputs.has_update == 'true' && github.event.client_payload.branch == 'master'"
name: Create Draft PR
uses: peter-evans/create-pull-request@v5
Expand Down

0 comments on commit d87f5b9

Please sign in to comment.