We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0115b8e + 47fb475 commit 7127a61Copy full SHA for 7127a61
.github/workflows/commit-check-pr.yml
@@ -62,15 +62,15 @@ jobs:
62
needs: fetch-data
63
env:
64
PR_NUMBER: ${{ needs.fetch-data.outputs.pr_number }}
65
+ PR_HASH: ${{ needs.fetch-data.outputs.head_sha }}
66
steps:
67
- uses: actions/checkout@v3
68
- name: Get Commits
69
id: get-commits
70
run: |
71
master_commit=$(cat .git/refs/remotes/origin/master)
72
echo "master_commit_hash=$master_commit" >> $GITHUB_OUTPUT
- last_commit=$(cat .git/refs/remotes/pull/${{ env.PR_NUMBER }}/merge)
73
- echo "last_commit_hash=$last_commit" >> $GITHUB_OUTPUT
+ echo "last_commit_hash=${{ env.PR_HASH }}" >> $GITHUB_OUTPUT
74
- name: Run Commit Checker
75
shell: bash
76
0 commit comments