We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1511f67 commit 9228e27Copy full SHA for 9228e27
1 file changed
.github/workflows/build.yml
@@ -29,12 +29,15 @@ jobs:
29
30
- name: Get Commit hash
31
run: |
32
- if [ "${{ github.event_name }}" = "pull_request" ]; then
33
- COMMIT_SHA=${{ github.event.pull_request.head.sha }}
+ if [ "${EVENT_NAME}" = "pull_request" ]; then
+ COMMIT_SHA=${PULL_SHA}
34
else
35
COMMIT_SHA=${GITHUB_SHA}
36
fi
37
echo "SHORT_SHA=$(echo $COMMIT_SHA | cut -c1-8)" >> $GITHUB_ENV
38
+ env:
39
+ EVENT_NAME: ${{ github.event_name }}
40
+ PULL_SHA: ${{ github.event.pull_request.head.sha }}
41
42
- name: Export Version
43
if: github.ref_type == 'tag'
0 commit comments