Skip to content

Commit ea4c69a

Browse files
authored
Compute short SHA in a separate job step (#302)
1 parent d03090c commit ea4c69a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/trigger-jitpack-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: Get short Git commit SHA
11+
id: sha
12+
run: echo "short=${GITHUB_SHA:0:10}" >> $GITHUB_OUTPUT
13+
1014
- name: Trigger Jitpack Build
1115
run: |
12-
JITPACK_URL="https://jitpack.io/com/github/${{ github.repository }}/${GITHUB_SHA:0:10}/build.log"
16+
JITPACK_URL="https://jitpack.io/com/github/${{ github.repository }}/${{ steps.sha.outputs.short }}/build.log"
1317
curl -s -m 300 ${JITPACK_URL}

0 commit comments

Comments
 (0)