mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 17:20:30 +00:00
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:
parent
21a6f984ee
commit
8eb5903336
1 changed files with 8 additions and 1 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue