diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9005c083..1dda8862 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -42,8 +42,8 @@ jobs: echo IMAGE_TAG="${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV echo GORELEASER_ARGS="--clean" >> $GITHUB_ENV echo ENABLE_RELEASE_PIPELINE=true >> $GITHUB_ENV - elif [[ $GITHUB_REF == refs/heads/* ]]; then - # Branch build. + elif [[ $GITHUB_REF == refs/heads/main ]]; then + # 'main' branch build. echo IMAGE_TAG="$(echo "${GITHUB_REF#refs/heads/}" | sed -r 's|/+|-|g')" >> $GITHUB_ENV echo GORELEASER_ARGS="--clean --skip=validate" >> $GITHUB_ENV elif [[ $GITHUB_REF == refs/pull/* ]]; then