Skip to content

Commit

Permalink
Simplify the setting of IN_GIT_TAGGED in the docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Insprill committed Apr 3, 2024
1 parent ebe2e94 commit 0c16a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
echo "IN_GIT_HASH=$(git rev-parse --short HEAD)" >> .env
echo "IN_GIT_DIRTY=$([[ -n $(git status --porcelain) ]] && echo true || echo false)" >> .env
echo "IN_GIT_TAG=$(git describe --tags --exact-match)" >> .env
echo "IN_GIT_TAGGED=$(git describe --tags --exact-match > /dev/null 2>&1; [ $? -eq 0 ] && echo "true" || echo "false")" >> .env
echo "IN_GIT_TAGGED=$([[ -n $(git describe --tags --exact-match) ]] && echo true || echo false)" >> .env
echo "IN_GIT_REMOTE_URL=$(git remote get-url origin)" >> .env
- name: Build & Push
Expand Down

0 comments on commit 0c16a46

Please sign in to comment.