Skip to content

Commit 3dba1bb

Browse files
authored
Merge pull request #1626 from WadeBarnes/fix/get-branch
fixed correct checkout version & tags fetch
2 parents c0c5084 + 727fcb4 commit 3dba1bb

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/tag.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,17 @@ jobs:
1313
version: ${{ steps.get-release-info.outputs.version }}
1414
versionTag: ${{ steps.get-release-info.outputs.versionTag }}
1515
prBranch: ${{ steps.get-release-info.outputs.prBranch }}
16-
BASE: ${{ steps.branch.outputs.BASE }}
16+
BASE: ${{ steps.get-branch.outputs.branch }}
1717
steps:
1818
- name: checkout source code
19-
uses: actions/checkout@v1
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
2022
- name: extract branch
21-
id: branch
22-
run: |
23-
raw=$(git branch -r --contains ${{ github.ref }})
24-
branch=${raw/origin\/}
25-
echo "BASE=$branch" >> $GITHUB_OUTPUT
26-
echo "::debug::BASE is being set to $branch"
27-
echo "::group::DEBUG"
28-
echo "BASE is being set to $branch"
29-
echo "::endgroup::"
23+
id: get-branch
24+
uses: hyperledger/indy-shared-gha/.github/actions/branch-from-tag@v1
25+
with:
26+
tag: ${{ github.ref }}
3027
- name: get-release-info
3128
id: get-release-info
3229
uses: hyperledger/indy-shared-gha/.github/actions/get-release-info@v1

0 commit comments

Comments
 (0)