From f192a5dd2a918aab4c28b26ec15e6ae00834e7b9 Mon Sep 17 00:00:00 2001 From: "Joshua A. Anderson" Date: Mon, 28 Oct 2024 10:04:03 -0400 Subject: [PATCH] Use `github.head_ref`. --- .github/workflows/test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a6a6cb1..311718b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -103,19 +103,19 @@ jobs: - run: cargo bundle-licenses --version update_conda_lockfiles: - if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref != 'update-conda-lockfiles' && contains(github.event.pull_request.labels.*.name, 'test-conda-lockfiles') }} + if: ${{ github.event_name == 'pull_request' && github.head_ref != 'update-conda-lockfiles' && contains(github.event.pull_request.labels.*.name, 'test-conda-lockfiles') }} uses: ./.github/workflows/update-conda-lockfiles.yaml secrets: inherit with: - branch: ${{ github.event.pull_request.head.ref }} + branch: ${{ github.head_ref }} path: test/update-conda-lockfile update_uv_lockfiles: - if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref != 'update-uv-lockfiles' && contains(github.event.pull_request.labels.*.name, 'test-uv-lockfiles') }} + if: ${{ github.event_name == 'pull_request' && github.head_ref != 'update-uv-lockfiles' && contains(github.event.pull_request.labels.*.name, 'test-uv-lockfiles') }} uses: ./.github/workflows/update-uv-lockfiles.yaml secrets: inherit with: - branch: ${{ github.event.pull_request.head.ref }} + branch: ${{ github.head_ref }} path: test/update-uv-lockfile setup_row: