Skip to content

Commit 59d17c1

Browse files
committed
Use short hashes for nightly artifacts
1 parent 681bf10 commit 59d17c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/nightly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
# replaying the log keeps make's own exit status without needing bash.
6363
make DSIWIFI_BUILD_KIND=Nightly DSIWIFI_COMMIT=$(echo "${{ github.sha }}" | cut -c1-7) > build.log 2>&1 || { cat build.log; echo "::error::build failed"; exit 1; }
6464
cat build.log
65+
printf 'short_sha=%.7s\n' "$GITHUB_SHA" >> "$GITHUB_OUTPUT"
6566
- name: Check this really is a debug build
6667
# Nightlies are for testing, so the flash-layout screen and the forced no-op write must
6768
# be present. Read back out of build.log rather than assumed from the build kind: the
@@ -86,6 +87,6 @@ jobs:
8687
with:
8788
# The commit stays in the filename so a downloaded nightly identifies itself.
8889
path: dsi_wifi_manager-*.dsi
89-
name: dsi_wifi_manager-nightly-${{ github.sha }}
90+
name: dsi_wifi_manager-nightly-${{ steps.build.outputs.short_sha }}
9091
if-no-files-found: error
9192
retention-days: 14

0 commit comments

Comments
 (0)