Skip to content

Commit 9a0adb1

Browse files
committed
ci: keep download-artifact-retry on the same path as before; bump to v8.0.2
Default github-token and run-id to empty so steps that omit them (the sdist jobs) keep using actions/download-artifact's internal download path instead of switching to the public REST path. Bump the pinned action to v8.0.2.
1 parent 8deb152 commit 9a0adb1

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

‎.github/actions/download-artifact-retry/action.yml‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,20 @@ inputs:
1717
description: "Destination path for the downloaded artifact"
1818
required: true
1919
run-id:
20-
description: "The run ID of the workflow run that uploaded the artifact"
20+
description: >-
21+
The run ID of the workflow run that uploaded the artifact. Only used
22+
together with github-token; leave empty to download from the current run.
2123
required: false
22-
default: ${{ github.run_id }}
24+
default: ""
2325
github-token:
24-
description: "Token used to download the artifact"
26+
description: >-
27+
Token used to download from another run or repository. Leave empty (the
28+
default) to download from the current run, which uses
29+
actions/download-artifact's internal download path. That path is not the
30+
same as the one used when a token is given, so do not default this to
31+
github.token.
2532
required: false
26-
default: ${{ github.token }}
33+
default: ""
2734
retry-delay-seconds:
2835
description: "Seconds to wait between the first failure and the retry"
2936
required: false
@@ -35,7 +42,7 @@ runs:
3542
- name: Download artifact (attempt 1)
3643
id: attempt1
3744
continue-on-error: true
38-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
45+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
3946
with:
4047
name: ${{ inputs.name }}
4148
path: ${{ inputs.path }}
@@ -51,7 +58,7 @@ runs:
5158
5259
- name: Download artifact (attempt 2)
5360
if: ${{ steps.attempt1.outcome == 'failure' }}
54-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
61+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
5562
with:
5663
name: ${{ inputs.name }}
5764
path: ${{ inputs.path }}

0 commit comments

Comments
 (0)