Skip to content

Commit 15354e6

Browse files
authored
chore(ci): fix artifacts slow download (#12171)
* refactor: double upload, adhoc download
1 parent 74ea720 commit 15354e6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/actions/artifact/download/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ runs:
1919
steps:
2020
- name: Download artifact from github
2121
uses: actions/download-artifact@v4.1.7
22-
if: ${{ inputs.force-use-github == 'true' || runner.environment == 'github-hosted' }}
22+
if: ${{ runner.environment == 'github-hosted' }}
2323
with:
2424
name: ${{ inputs.name }}
2525
path: ${{ inputs.path }}
2626
- name: Download artifact from local
27-
uses: lynx-infra/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 #dev
28-
if: ${{ inputs.force-use-github != 'true' && runner.environment == 'self-hosted' }}
27+
if: ${{ runner.environment == 'self-hosted' }}
28+
uses: lynx-infra/download-artifact@79d9914484f933089c2840552cf439bac85debad # https://github.com/lynx-infra/download-artifact/tree/dev
2929
with:
3030
name: ${{ inputs.name }}
3131
path: ${{ inputs.path }}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ inputs:
1717
runs:
1818
using: composite
1919
steps:
20-
- name: Upload artifact to github
21-
uses: actions/upload-artifact@v4
22-
if: ${{ inputs.force-use-github == 'true' || runner.environment == 'github-hosted' }}
20+
- name: Upload artifact to local
21+
uses: lynx-infra/upload-artifact@332ec52e99f7cbf1fbbdc9bcc09280d49147d092 # https://github.com/lynx-infra/upload-artifact/tree/dev
22+
if: ${{ runner.environment == 'self-hosted' }}
2323
with:
2424
name: ${{ inputs.name }}
2525
path: ${{ inputs.path }}
2626
if-no-files-found: error
2727
overwrite: true
28-
- name: Upload artifact to local
29-
uses: lynx-infra/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 #dev
30-
if: ${{ runner.environment == 'self-hosted' }}
28+
29+
- name: Upload artifact to github
30+
uses: actions/upload-artifact@v4
3131
with:
3232
name: ${{ inputs.name }}
3333
path: ${{ inputs.path }}

0 commit comments

Comments
 (0)