Skip to content

Commit

Permalink
chore: pass on github token
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Aug 28, 2024
1 parent e4e7118 commit 15548bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 46 deletions.
11 changes: 9 additions & 2 deletions .github/actions/proof-params-download/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: Download proof params

inputs:
github-token:
description: 'A secrets.GITHUB_TOKEN'
required: true

runs:
using: 'composite'


#on: workflow_call
# workflow_call:
# inputs:
Expand All @@ -25,7 +32,7 @@ runs:
with:
route: GET /repos/filecoin-project/rust-fil-proofs/actions/workflows/proof-params.yml/runs?per_page=1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ inputs.github-token }}
- name: Download all Artifacts from proof-params workflow
uses: actions/download-artifact@v4
with:
Expand All @@ -34,7 +41,7 @@ runs:
path: /var/tmp/filecoin-proof-parameters/
merge-multiple: true
run-id: ${{ fromJson(steps.latest-proof-params.outputs.data).workflow_runs[0].id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ inputs.github-token }}
- name: Obtain Filecoin IPP parameter file
# paramfetch is using `ipget` which currently always times out on
# CI, hence get this file via HTTP instead.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ jobs:

- name: Download the proof params
uses: ./.github/actions/proof-params-download
#with:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# parameters-json-hash: ${{ hashFiles('filecoin-proofs/parameters.json') }}

- name: Test in release profile
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/proof-params-download.yml

This file was deleted.

0 comments on commit 15548bb

Please sign in to comment.