Skip to content

Commit

Permalink
print branch and tag names
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjahnke authored May 18, 2021
1 parent 199460c commit 17c9d4d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ jobs:
-
name: Find tag
id: get_tag
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
run: |
echo ${GITHUB_REF#refs/tags/}
echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
if: startsWith(github.ref, 'refs/tags')
-
name: Find branch name
id: get_branch
run: echo ::set-output name=BRANCH::${GITHUB_REF#refs/heads/}
run: |
echo ${GITHUB_REF#refs/heads/}
echo ::set-output name=BRANCH::${GITHUB_REF#refs/heads/}
exit 1
-
name: Login to registry
uses: docker/login-action@v1
Expand Down

0 comments on commit 17c9d4d

Please sign in to comment.