Skip to content

Commit

Permalink
chore: get run-id dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Aug 28, 2024
1 parent 1f8b4bf commit be0f4b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,22 +171,22 @@ jobs:
# run: ls -lR /var/tmp/filecoin-proof-parameters/


- uses: octokit/[email protected]
- name: Get run-id from latest proof-params workflow run
uses: octokit/[email protected]
id: latest-proof-params
with:
route: GET /repos/filecoin-project/rust-fil-proofs/actions/workflows/proof-params.yml/runs?per_page=1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Download All Artifacts
- name: Download all Artifacts from proof-params workflow
uses: actions/download-artifact@v4
with:
pattern: proof-params-v28-n-${{ hashFiles('filecoin-proofs/parameters.json') }}-*
path: /var/tmp/filecoin-proof-parameters/
merge-multiple: true
#run-id: ${{ fromJson(steps.latest-proof-params.outputs.data).workflow_runs[0].id }}
run-id: ${{ fromJson(steps.latest-proof-params.outputs.data).workflow_runs[0].id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: 10601456862
- name: List parameter files
run: ls -al /var/tmp/filecoin-proof-parameters/

Expand Down

0 comments on commit be0f4b9

Please sign in to comment.