Skip to content

Commit e70a043

Browse files
committed
use github context
1 parent b6ff4c3 commit e70a043

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.github/actions/restore-artifacts/action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ inputs:
1515
token:
1616
description: GITHUB_TOKEN from secrets (not accessible from here)
1717
required: false
18-
runId:
19-
description: The GITHUB_RUN_ID
20-
required: false
2118

2219
runs:
2320
using: composite
@@ -68,7 +65,7 @@ runs:
6865
rm -rf $(jq -r '.testToDelete' <<< $client) || true
6966
7067
# Get the 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")
68+
id=$(gh api -H "Accept: application/vnd.github.v3+json" /repos/algolia/api-clients-automation/actions/runs/${{ github.run_id }}/artifacts -q ".artifacts [] | select(.name==\"$artifact\") | .id")
7269
gh api -H "Accept: application/vnd.github.v3+json" /repos/algolia/api-clients-automation/actions/artifacts/$id/zip > $artifact.zip
7370
unzip -q -o $artifact.zip && rm $artifact.zip
7471
done

.github/workflows/check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ jobs:
245245
type: all
246246
matrix: ${{ toJSON(needs.setup.outputs.GEN_MATRIX) }}
247247
token: ${{ secrets.ALGOLIA_BOT_TOKEN }}
248-
runId: ${{ env.GITHUB_RUN_ID }}
249248

250249
- name: Setup
251250
uses: ./.github/actions/setup

0 commit comments

Comments
 (0)