Skip to content

Commit ad48e5b

Browse files
committed
Checkout the repo before opening release PRs
1 parent 904678c commit ad48e5b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/release-branch.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ jobs:
104104
});
105105
console.log(`Created branch ${branch} from ${sha}`);
106106
107+
- name: Checkout the code
108+
uses: actions/[email protected]
109+
with:
110+
ref: "release/v${{ needs.compute-version.outputs.short }}"
111+
107112
- name: Open a pull request to merge the branch into main
108113
env:
109114
VERSION: ${{ needs.compute-version.outputs.short }}

.github/workflows/release-bump.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ jobs:
8484
});
8585
console.log(`Updated branch ${branch} to ${sha}`);
8686
87+
- name: Checkout the code
88+
uses: actions/[email protected]
89+
with:
90+
ref: "${{ github.ref_name }}"
91+
8792
- name: Open a pull request to merge the release branch back to main
8893
if: github.event.inputs.merge-back
8994
env:

0 commit comments

Comments
 (0)