Skip to content

Commit 8abe4b1

Browse files
authored
chore(ci): support force use github artifacts (#12187)
refactor: respect force use github
1 parent b943377 commit 8abe4b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

0 commit comments

Comments
 (0)