Skip to content

Commit f832a5b

Browse files
authored
Change head-sha in commit (#10196)
1 parent 387d37d commit f832a5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pin-system-tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4141
with:
4242
ref: ${{ steps.define-base-branch.outputs.base_branch }}
43+
44+
- name: Get latest commit SHA of base branch
45+
id: get-latest-commit-sha
46+
run: |
47+
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
4348
4449
- name: Define branch name
4550
id: define-branch
@@ -87,7 +92,7 @@ jobs:
8792
with:
8893
token: "${{ steps.octo-sts.outputs.token }}"
8994
branch: "${{ steps.define-branch.outputs.branch }}"
90-
head-sha: "${{ github.sha }}"
95+
head-sha: "${{ steps.get-latest-commit-sha.outputs.sha }}"
9196
create-branch: true
9297
command: push
9398
commits: "${{ steps.create-commit.outputs.commit }}"

0 commit comments

Comments
 (0)