diff --git a/.github/workflows/fork_pr_benchmarks_closed.yml b/.github/workflows/fork_pr_benchmarks_closed.yml index bbf9068..e0fccd6 100644 --- a/.github/workflows/fork_pr_benchmarks_closed.yml +++ b/.github/workflows/fork_pr_benchmarks_closed.yml @@ -1,5 +1,5 @@ on: - pull_request: + pull_request_target: types: [closed] jobs: @@ -14,4 +14,4 @@ jobs: bencher archive \ --project example \ --token '${{ secrets.BENCHER_API_TOKEN }}' \ - --branch '${{ github.head_ref }}' + --branch "$GITHUB_HEAD_REF" diff --git a/.github/workflows/pr_benchmarks.yml b/.github/workflows/pr_benchmarks.yml index 6a29469..04af1d2 100644 --- a/.github/workflows/pr_benchmarks.yml +++ b/.github/workflows/pr_benchmarks.yml @@ -18,8 +18,8 @@ jobs: bencher run \ --project example \ --token '${{ secrets.BENCHER_API_TOKEN }}' \ - --branch '${{ github.head_ref }}' \ - --start-point '${{ github.base_ref }}' \ + --branch "$GITHUB_HEAD_REF" + --start-point "$GITHUB_BASE_REF" \ --start-point-hash '${{ github.event.pull_request.base.sha }}' \ --start-point-clone-thresholds \ --start-point-reset \ diff --git a/.github/workflows/pr_benchmarks_closed.yml b/.github/workflows/pr_benchmarks_closed.yml index 64a2c11..5e12bcd 100644 --- a/.github/workflows/pr_benchmarks_closed.yml +++ b/.github/workflows/pr_benchmarks_closed.yml @@ -16,4 +16,4 @@ jobs: bencher archive \ --project example \ --token '${{ secrets.BENCHER_API_TOKEN }}' \ - --branch '${{ github.head_ref }}' + --branch "$GITHUB_HEAD_REF"