diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 7f23ce433..6d8b44c29 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -34,7 +34,7 @@ jobs: COMPARE_OUT_FILE: benchmark-results.txt steps: - name: Check out baseline branch - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.base.sha }} path: base @@ -52,7 +52,7 @@ jobs: test -s "$RUNNER_TEMP/$BASELINE_FILE" || { echo "Baseline not created at $BASELINE_FILE"; exit 1; } - name: Check out main branch if: ${{ github.event.pull_request.base.ref != 'main' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: main path: main-branch @@ -71,7 +71,7 @@ jobs: eval "$BENCH_CMD --save $RUNNER_TEMP/$MAIN_FILE" test -s "$RUNNER_TEMP/$MAIN_FILE" || { echo "Baseline (main) not created at $MAIN_FILE"; exit 1; } - name: Check out PR branch - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.sha }} path: pr