We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c15d41 commit 28c4e65Copy full SHA for 28c4e65
1 file changed
.github/workflows/publish_docker.yml
@@ -46,8 +46,8 @@ jobs:
46
SHOULD_BUILD_PUSH=false
47
48
# Determine tag and build indicator based on context
49
- if [[ "${{ github.ref_type }}" == "branch" ]]; then
50
- case "${{ github.ref_name }}" in
+ if [[ "$GITHUB_REF_TYPE" == "branch" ]]; then
+ case "$GITHUB_REF_NAME" in
51
"main")
52
TAG=main
53
SHOULD_BUILD_PUSH=true
@@ -64,9 +64,9 @@ jobs:
64
TAG=${{ github.ref_name }}
65
;;
66
esac
67
- elif [[ "${{ github.ref_type }}" == "tag" ]]; then
+ elif [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
68
69
- if [[ "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ if [[ "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
70
71
fi
72
0 commit comments