Skip to content

Commit fee6cea

Browse files
committed
fix(ci): use resilient uploads across compatibility workflows
1 parent 5ac10a9 commit fee6cea

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

‎.github/actions/upload-artifact/action.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ inputs:
1313
retention-days:
1414
description: Retention in days (0 uses the repository default)
1515
default: '0'
16+
include-hidden-files:
17+
description: Include hidden files in the artifact
18+
default: 'false'
1619
outputs:
1720
artifact-id:
1821
description: ID of the uploaded artifact
@@ -43,6 +46,7 @@ runs:
4346
path: ${{ inputs.path }}
4447
if-no-files-found: ${{ inputs.if-no-files-found }}
4548
retention-days: ${{ inputs.retention-days }}
49+
include-hidden-files: ${{ inputs.include-hidden-files }}
4650
overwrite: true
4751

4852
- name: Wait before retrying
@@ -60,6 +64,7 @@ runs:
6064
path: ${{ inputs.path }}
6165
if-no-files-found: ${{ inputs.if-no-files-found }}
6266
retention-days: ${{ inputs.retention-days }}
67+
include-hidden-files: ${{ inputs.include-hidden-files }}
6368
overwrite: true
6469

6570
- name: Wait before the final attempt
@@ -78,4 +83,5 @@ runs:
7883
path: ${{ inputs.path }}
7984
if-no-files-found: ${{ inputs.if-no-files-found }}
8085
retention-days: ${{ inputs.retention-days }}
86+
include-hidden-files: ${{ inputs.include-hidden-files }}
8187
overwrite: true

‎.github/workflows/bun-compatibility.yml‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ name: Bun patch compatibility
1414
on:
1515
pull_request:
1616
paths:
17+
- '.github/actions/upload-artifact/**'
1718
- '.github/workflows/bun-compatibility.yml'
1819
- 'scripts/backtest-bun.py'
1920
- 'docs/testing/bun-compatibility.md'
@@ -111,7 +112,7 @@ jobs:
111112
run: cargo build --locked -p socket-patch-cli
112113

113114
- name: Upload CLI
114-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
115+
uses: ./.github/actions/upload-artifact
115116
with:
116117
name: bun-cli-${{ matrix.os }}
117118
path: |
@@ -154,7 +155,8 @@ jobs:
154155
- name: Download CLI
155156
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
156157
with:
157-
name: bun-cli-${{ matrix.os }}
158+
pattern: bun-cli-${{ matrix.os }}*
159+
merge-multiple: true
158160
path: native-cli
159161

160162
- name: Setup Python
@@ -313,7 +315,7 @@ jobs:
313315
--jobs 3
314316
315317
- name: Upload results
316-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
318+
uses: ./.github/actions/upload-artifact
317319
if: always()
318320
with:
319321
name: bun-results-${{ matrix.os }}-${{ matrix.bun }}

‎.github/workflows/pnpm-compatibility.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
shutil.copy2(item['executable'], dest / 'pnpm-e2e')
3232
assert (dest / 'pnpm-e2e').is_file()
3333
PY
34-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
34+
- uses: ./.github/actions/upload-artifact
3535
with:
3636
name: pnpm-e2e
3737
path: target/pnpm-e2e/
@@ -75,7 +75,8 @@ jobs:
7575
steps:
7676
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
7777
with:
78-
name: pnpm-e2e
78+
pattern: pnpm-e2e*
79+
merge-multiple: true
7980
path: bin
8081
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
8182
with:

0 commit comments

Comments
 (0)