ci: fix artifact name by sanitizing branch name slashes

Replace / with - in branch name and use short SHA (7 chars)
e.g. plugin-claude-trusting-volta-qlg8bk-c2c5dd5

https://claude.ai/code/session_019Jbz6HpQvWU1wpm5M6MZpd
This commit is contained in:
Claude 2026-06-16 04:24:39 +00:00
parent 21a6f984ee
commit 8eb5903336
No known key found for this signature in database

View file

@ -38,9 +38,16 @@ jobs:
- run: npm run build
- name: Set artifact name
id: artifact
run: |
BRANCH=$(echo "${{ github.ref_name }}" | tr '/' '-')
SHA=$(echo "${{ github.sha }}" | cut -c1-7)
echo "name=plugin-${BRANCH}-${SHA}" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: plugin-${{ github.ref_name }}-${{ github.sha }}
name: ${{ steps.artifact.outputs.name }}
path: |
main.js
manifest.json