use branch name as tag name

This commit is contained in:
Robert Resch 2021-07-05 12:43:42 +02:00
parent 76f45225d9
commit 6c94484068
No known key found for this signature in database
GPG key ID: 6B360759EB2ACAEE

View file

@ -13,14 +13,14 @@ jobs:
- name: Get tag name
shell: bash
run: |
branch=$(echo ${GITHUB_REF#refs/heads/});
BRANCH=$(echo ${GITHUB_REF#refs/heads/});
if [ -z $BRANCH ]; then
exit 1;
elif [ $BRANCH == "master" ]; then
branch=latest;
BRANCH=latest;
fi
echo "##[set-output name=tag;]$(echo $branch)"
echo "##[set-output name=tag;]$(echo $BRANCH)"
id: tag_name
# https://github.com/docker/setup-qemu-action