From a577a46a875287a6c62ca8c4b05d63ca726f675c Mon Sep 17 00:00:00 2001 From: WolverMinion Date: Wed, 18 Jan 2023 19:35:43 +0100 Subject: [PATCH] ci: update workflow with versioning --- .github/workflows/ci-go.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index bddbb1a..d1e47b1 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -14,7 +14,9 @@ jobs: - name: "get branch name" id: extract_branch_name shell: bash - run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" + run: | + branch_name=$(git rev-parse --abbrev-ref HEAD) + echo "::set-output name=branch::$(echo ${branch_name})" - name: "setup node" uses: actions/setup-node@v3 with: