From 3262990d7c4f305fc14bb7517a56db7455f821a9 Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Wed, 29 Mar 2023 14:06:52 -0400 Subject: [PATCH] use head_ref --- .github/workflows/branchtest.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/branchtest.yml b/.github/workflows/branchtest.yml index 4699d09f..a2659fd6 100644 --- a/.github/workflows/branchtest.yml +++ b/.github/workflows/branchtest.yml @@ -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