Skip to content

Commit

Permalink
use github.base_ref to get the target branch
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Dec 15, 2023
1 parent 0e54f60 commit 97a8b41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nupm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
uses: amtoine/[email protected]
id: "nu-setup"
with:
nu_version: ${{github.ref == 'refs/heads/nightly' && 'nightly' || inputs.nu_version}}
nupm_revision: ${{github.ref == 'refs/heads/nightly' && 'main' || inputs.nupm_revision}}
nu_version: ${{github.base_ref == 'nightly' && 'nightly' || inputs.nu_version}}
nupm_revision: ${{github.base_ref == 'nightly' && 'main' || inputs.nupm_revision}}

- name: Set up Git
shell: bash
Expand Down

0 comments on commit 97a8b41

Please sign in to comment.