Skip to content

Commit

Permalink
Use github.head_ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Oct 28, 2024
1 parent b656e61 commit f192a5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f192a5d

Please sign in to comment.