This commit is contained in:
@@ -16,10 +16,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Set image tag from branch
|
- name: Set image tag from branch
|
||||||
run: |
|
run: |
|
||||||
echo "GITEA_REF=$GITEA_REF"
|
# hole den Branch-Namen über Git
|
||||||
|
VERSION=$(git rev-parse --abbrev-ref HEAD)
|
||||||
# strip refs/heads/
|
|
||||||
VERSION="${GITEA_REF#refs/heads/}"
|
|
||||||
|
|
||||||
if [ -z "$VERSION" ]; then
|
if [ -z "$VERSION" ]; then
|
||||||
echo "ERROR: could not determine branch name"
|
echo "ERROR: could not determine branch name"
|
||||||
|
|||||||
Reference in New Issue
Block a user