File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
actions/restore-artifacts Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ inputs:
15
15
token :
16
16
description : GITHUB_TOKEN from secrets (not accessible from here)
17
17
required : false
18
+ runId :
19
+ description : The GITHUB_RUN_ID
20
+ required : false
18
21
19
22
runs :
20
23
using : composite
65
68
rm -rf $(jq -r '.testToDelete' <<< $client) || true
66
69
67
70
# Get the artifact id
68
- id=$(gh api -H "Accept: application/vnd.github.v3+json" /repos/algolia/api-clients-automation/actions/runs/${{ env.GITHUB_RUN_ID }}/artifacts -q ".artifacts [] | select(.name==\"$artifact\") | .id")
71
+ id=$(gh api -H "Accept: application/vnd.github.v3+json" /repos/algolia/api-clients-automation/actions/runs/${{ inputs.runId }}/artifacts -q ".artifacts [] | select(.name==\"$artifact\") | .id")
69
72
gh api -H "Accept: application/vnd.github.v3+json" /repos/algolia/api-clients-automation/actions/artifacts/$id/zip > $artifact.zip
70
73
unzip -q -o $artifact.zip && rm $artifact.zip
71
74
done
Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ jobs:
245
245
type : all
246
246
matrix : ${{ toJSON(needs.setup.outputs.GEN_MATRIX) }}
247
247
token : ${{ secrets.ALGOLIA_BOT_TOKEN }}
248
+ runId : ${{ env.GITHUB_RUN_ID }}
248
249
249
250
- name : Setup
250
251
uses : ./.github/actions/setup
You can’t perform that action at this time.
0 commit comments