Skip to content

Commit

Permalink
Fix forc-run-benchmarks checkout steps for non-PR CI builds (FuelLabs…
Browse files Browse the repository at this point in the history
…#4594)

## Description

The checkout step was failing on a PR running from my fork because the
PAT token is not setup in that case. This fixes that issue.

## Checklist

- [ ] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [ ] I have requested a review from the relevant team or maintainers.

Co-authored-by: Sophie Dankel <[email protected]>
Co-authored-by: IGI-111 <[email protected]>
  • Loading branch information
3 people authored May 31, 2023
1 parent 164c7c8 commit 99fb86f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,13 @@ jobs:
- name: Run benchmarks
run: ./benchmark.sh
- name: Checkout benchmark data
if: github.event_name != 'push'
uses: actions/checkout@v3
with:
repository: FuelLabs/sway-performance-data
path: performance-data
- name: Checkout benchmark data
if: github.event_name == 'push'
uses: actions/checkout@v3
with:
repository: FuelLabs/sway-performance-data
Expand Down

0 comments on commit 99fb86f

Please sign in to comment.