File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 84
84
run : make hash
85
85
86
86
- name : Commit Hash
87
- run : echo ${GITHUB_SHA }
87
+ run : echo ${{ github.event.pull_request.head.sha } }
88
88
89
89
measure :
90
90
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 75
75
run : make hash
76
76
77
77
- name : Commit Hash
78
- run : echo ${GITHUB_SHA}
78
+ run : echo ${{ github.event.pull_request.head.sha }}
79
+
Original file line number Diff line number Diff line change @@ -13,8 +13,14 @@ make build-in-docker
13
13
commit_hash=$( openssl dgst -sha256 " $commit " | awk ' {print $2}' )
14
14
docker_hash=$( openssl dgst -sha256 " $docker " | awk ' {print $2}' )
15
15
16
+ git_hash=$( git rev-parse --short " $GITHUB_SHA " )
17
+ git_branch=${GITHUB_REF# refs/ heads/ }
18
+
19
+ echo " $git_hash "
20
+ echo " $git_branch "
21
+
16
22
if [ " $commit_hash " = " $docker_hash " ]; then
17
- echo " Binary hashes match. Commit hash: ${GITHUB_SHA} "
23
+ echo " Binary hashes match."
18
24
else
19
25
echo " The contract in commit hash does not match with hash of contract build in docker. You must call \` make dock\` command before submitting a PR." >&2
20
26
exit 1
You can’t perform that action at this time.
0 commit comments