Skip to content

Commit c2570c8

Browse files
committed
Add some uniqueness to artifact names and allow continuation on failure should an artifact not exist yet
1 parent f6a5b0b commit c2570c8

File tree

3 files changed

+9
-26
lines changed

3 files changed

+9
-26
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -163,30 +163,11 @@ jobs:
163163
uses: actions/download-artifact@v4
164164
continue-on-error: true
165165
with:
166-
name: test-coverage
167-
path: previous-coverage
166+
name: test-coverage-{{ matrix.runs-on }}
167+
path: previous-coverage/
168168
github-token: ${{ secrets.GITHUB_TOKEN }}
169169
repository: ${{ github.repository }}
170170

171-
- name: Install tree
172-
run: sudo apt-get update && sudo apt-get install -y tree
173-
174-
- name: Show full directory tree
175-
run: tree
176-
177-
- name: List artifacts programmatically
178-
env:
179-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
180-
run: |
181-
# List artifacts for current workflow run
182-
artifacts=$(curl -L \
183-
-H "Accept: application/vnd.github+json" \
184-
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
185-
-H "X-GitHub-Api-Version: 2022-11-28" \
186-
"${{ github.api_url }}/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts")
187-
188-
echo "$artifacts" | jq '.'
189-
190171
- name: Comment the new code coverage
191172
uses: lucassabreu/comment-coverage-clover@main
192173
continue-on-error: true
@@ -199,7 +180,7 @@ jobs:
199180
if: success()
200181
uses: actions/upload-artifact@v4
201182
with:
202-
name: test-coverage
183+
name: test-coverage-{{ matrix.runs-on }}
203184
path: coverage/
204185
retention-days: 7
205186

@@ -237,8 +218,9 @@ jobs:
237218

238219
- name: Upload build artifacts
239220
uses: actions/upload-artifact@v4
221+
continue-on-error: true
240222
with:
241-
name: build-artifacts
223+
name: build-artifacts-{{ matrix.runs-on }}
242224
path: dist/
243225
retention-days: 7
244226

@@ -274,8 +256,9 @@ jobs:
274256

275257
- name: Download build artifacts
276258
uses: actions/download-artifact@v4
259+
continue-on-error: true
277260
with:
278-
name: build-artifacts
261+
name: build-artifacts-{{ matrix.runs-on }}
279262
path: dist/
280263

281264
- name: NPM publish dry run

.github/workflows/CODEQL.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CodeQL Analysis
1+
name: CodeQL
22

33
on:
44
push:

.github/workflows/DependabotBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Dependabot Auto-Format
1+
name: Dependabot
22

33
on:
44
pull_request:

0 commit comments

Comments
 (0)