Skip to content

Commit

Permalink
[BUG Fix] Add missing checkout statements in benchmark workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiWang1999 authored Jul 23, 2024
1 parent d837816 commit 72da294
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
cd benchmark/operators
python ./benchmark_ops_matmul.py
- name: Checkout PR branch code
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Get PR branch commit ID
id: get_pr_commit
run: echo "PR_COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
Expand Down Expand Up @@ -71,13 +76,6 @@ jobs:
cd benchmark/operators
python ./compare_benchmark.py --base ${{ env.BASE_COMMIT_ID }} --head ${{ env.PR_COMMIT_ID }} 2>&1 | tee compare_results.txt
- name: Install GitHub CLI
run: |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository https://cli.github.com/packages
sudo apt update
sudo apt install gh
- name: Authenticate GitHub CLI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 72da294

Please sign in to comment.