mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-13 08:34:44 +08:00
use head_ref
This commit is contained in:
parent
dcab20150f
commit
3262990d7c
1 changed files with 3 additions and 3 deletions
6
.github/workflows/branchtest.yml
vendored
6
.github/workflows/branchtest.yml
vendored
|
@ -31,9 +31,9 @@ jobs:
|
|||
- name: check if branch exists
|
||||
id: checkbranch
|
||||
run: |
|
||||
if git show-ref ${{ github.ref_name}}; then
|
||||
if git show-ref ${{ github.head_ref}}; then
|
||||
echo branch exists
|
||||
echo "netclientbranch=${{ github.ref_name }}" >> $GITHUB_OUTPUT
|
||||
echo "netclientbranch=${{ github.head_ref }}" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo branch does not exist
|
||||
echo "netclientbranch=develop" >> $GITHUB_OUTPUT
|
||||
|
@ -43,7 +43,7 @@ jobs:
|
|||
needs: getbranch
|
||||
uses: gravitl/devops/.github/workflows/terraform.yml@master
|
||||
with:
|
||||
netmakerbranch: ${{ github.ref_name }}
|
||||
netmakerbranch: ${{ github.head_ref }}
|
||||
netclientbranch: ${{ needs.getbranch.outputs.netclientbranch }}
|
||||
secrets: inherit
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue