Skip to content

Commit fc41c01

Browse files
committed
fix(ci): fix duplicate artifact names
Different GitHub artifacts in the same workflow cannot have the same name. Since upgrading to v4, we're getting errors because of this: > Error: Failed to CreateArtifact: Received non-retryable error: Failed request: > (409) Conflict: an artifact with this name already exists on the workflow run Rename the artifacts in the test-vim-plugin workflow so that they're distinct from each other.
1 parent 268d305 commit fc41c01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test-vim-plugin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
vim:
17-
- {name: "Neovim", version_command: "nvim --version", test_command: "./plugin/vim/test-nvim.sh"}
18-
- {name: "Vim", version_command: "vim --version", test_command: "./plugin/vim/test-vim.sh"}
17+
- {name: "Neovim", version_command: "nvim --version", test_command: "./plugin/vim/test-nvim.sh", artifact_suffix: "-vim"}
18+
- {name: "Vim", version_command: "vim --version", test_command: "./plugin/vim/test-vim.sh", artifact_suffix: "-neovim"}
1919
runs-on: ubuntu-latest
2020
container: ghcr.io/quick-lint/quick-lint-js-github-vim:v1
2121
steps:
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3636
with:
3737
if-no-files-found: error
38-
name: web-demo-dist-${{ github.sha }}
38+
name: plugin${{ matrix.vim.artifact_suffix }}-${{ github.sha }}
3939
path: plugin/vim/quick-lint-js-vim.zip
4040
- name: upload archive to long-term storage
4141
if: ${{ github.event_name == 'push' && github.repository_owner == 'quick-lint' != null }}

0 commit comments

Comments
 (0)