Skip to content

Commit

Permalink
Fix GH invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed Nov 26, 2023
1 parent a3c08a4 commit 1e2aa7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,13 @@ jobs:
python3 -m pip install -e .
- name: Get Main Metrics
run: |
export GH_TOKEN=${{ github.token }} # Read-only for a public repo, CI token should be fine
sudo apt install -y jq
MAIN_SHA=$(gh api /repos/${{ github.repository }}/branches/main | jq -r .commit.sha )
TARBALL_URL=https://github.com/efabless/openlane-metrics/tarball/commit-$MAIN_SHA
mkdir -p gold
curl -L https://github.com/efabless/openlane-metrics/tarball/commit-$MAIN_SHA | tar -xzvC gold
echo "Curling '$TARBALL_URL'…"
curl -L $TARBALL_URL | tar -xzvC gold
- name: Download Metrics
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 1e2aa7e

Please sign in to comment.