From 8eb5903336313f27400c47c366e396c7b04f6cae Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Jun 2026 04:24:39 +0000 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3ee95f..93fe7e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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