Skip to content

Commit 6a27a07

Browse files
committed
use short sha instead of action id, run number
1 parent 7036bc9 commit 6a27a07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/lint-and-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ jobs:
1111
- run: npm ci
1212
- run: npm run lint
1313
- run: npm run custom-bundle -- --traces pie,bar,sunburst,waterfall --transforms none
14+
- id: get-short-sha
15+
run: |
16+
sha=$(echo ${{github.sha}} | cut -c-7)
17+
echo "sha=$id" >> $GITHUB_OUTPUT
1418
- uses: actions/upload-artifact@v4
1519
with:
16-
name: plotly-custom-${{ github.run_id }}-${{ github.run_attempt }}.min.js
20+
name: plotly-custom-${{steps.get-short-sha.outputs.sha}}.min.js
1721
path: dist/plotly-custom.min.js

0 commit comments

Comments
 (0)