Skip to content

Commit 7127a61

Browse files
authored
Merge pull request #47 from rimolive/rmartine-commit-checker
Change Commit Checker to get the PR last commit
2 parents 0115b8e + 47fb475 commit 7127a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/commit-check-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ jobs:
6262
needs: fetch-data
6363
env:
6464
PR_NUMBER: ${{ needs.fetch-data.outputs.pr_number }}
65+
PR_HASH: ${{ needs.fetch-data.outputs.head_sha }}
6566
steps:
6667
- uses: actions/checkout@v3
6768
- name: Get Commits
6869
id: get-commits
6970
run: |
7071
master_commit=$(cat .git/refs/remotes/origin/master)
7172
echo "master_commit_hash=$master_commit" >> $GITHUB_OUTPUT
72-
last_commit=$(cat .git/refs/remotes/pull/${{ env.PR_NUMBER }}/merge)
73-
echo "last_commit_hash=$last_commit" >> $GITHUB_OUTPUT
73+
echo "last_commit_hash=${{ env.PR_HASH }}" >> $GITHUB_OUTPUT
7474
- name: Run Commit Checker
7575
shell: bash
7676
env:

0 commit comments

Comments
 (0)