Merge pull request #532 from desty2k/master

Fix getting tag in Docker Publish workflow
This commit is contained in:
Alex 2022-01-18 09:23:12 -05:00 committed by GitHub
commit 5a62559594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,10 +18,10 @@ jobs:
run: |
if [[ -n "${{ github.event.inputs.tag }}" ]]; then
TAG=${{ github.event.inputs.tag }}
elif [[ "${{ github.base_ref }}" == 'master' ]]; then
elif [[ "${{ github.ref_name }}" == 'master' ]]; then
TAG="latest"
else
TAG="${{ github.base_ref }}"
TAG="${{ github.ref_name }}"
fi
echo "TAG=${TAG}" >> $GITHUB_ENV
-