Skip to content

Commit

Permalink
Merge pull request #1626 from WadeBarnes/fix/get-branch
Browse files Browse the repository at this point in the history
fixed correct checkout version & tags fetch
  • Loading branch information
WadeBarnes authored Jan 13, 2023
2 parents c0c5084 + 727fcb4 commit 3dba1bb
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@ jobs:
version: ${{ steps.get-release-info.outputs.version }}
versionTag: ${{ steps.get-release-info.outputs.versionTag }}
prBranch: ${{ steps.get-release-info.outputs.prBranch }}
BASE: ${{ steps.branch.outputs.BASE }}
BASE: ${{ steps.get-branch.outputs.branch }}
steps:
- name: checkout source code
uses: actions/checkout@v1
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: extract branch
id: branch
run: |
raw=$(git branch -r --contains ${{ github.ref }})
branch=${raw/origin\/}
echo "BASE=$branch" >> $GITHUB_OUTPUT
echo "::debug::BASE is being set to $branch"
echo "::group::DEBUG"
echo "BASE is being set to $branch"
echo "::endgroup::"
id: get-branch
uses: hyperledger/indy-shared-gha/.github/actions/branch-from-tag@v1
with:
tag: ${{ github.ref }}
- name: get-release-info
id: get-release-info
uses: hyperledger/indy-shared-gha/.github/actions/get-release-info@v1
Expand Down

0 comments on commit 3dba1bb

Please sign in to comment.