Skip to content

Commit 0629ec5

Browse files
committed
ci: checkout before running script
1 parent b879ee0 commit 0629ec5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,25 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Create Release PR
19-
uses: google-github-actions/release-please-action@v4
19+
uses: googleapis/release-please-action@v4
2020
id: release
2121
with:
2222
release-type: php
2323

2424
- name: Checkout
25-
if: ${{ steps.release.outputs.release_created }}
26-
uses: actions/checkout@v3
25+
if: ${{ steps.release.outputs.prs_created == 'true' }}
26+
uses: actions/checkout@v4
27+
with:
28+
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
2729

2830
- name: Update version in HoneybadgerLaravel.php
29-
if: ${{ steps.release.outputs.release_created }}
31+
if: ${{ steps.release.outputs.prs_created == 'true' }}
3032
run: php scripts/SyncSourceCodeWithPackageVersion.php ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
3133

3234
- uses: stefanzweifel/git-auto-commit-action@v5
33-
if: ${{ steps.release.outputs.release_created }}
35+
if: ${{ steps.release.outputs.prs_created == 'true' }}
3436
with:
37+
create_branch: false
3538
commit_message: "chore: update version to ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} [skip ci]"
3639
commit_user_name: "honeybadger-robot"
3740
commit_user_email: "[email protected]"

0 commit comments

Comments
 (0)