File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2727 - name : Extract version
2828 shell : bash
2929 run : |
30- [[ $GITHUB_REF =~ ^refs\/heads\/release\/ (.*)$ ]] && version=${BASH_REMATCH[1]} || version=${{ github.sha }}
30+ [[ $GITHUB_REF =~ ^refs\/tags\/v (.*)$ ]] && version=${BASH_REMATCH[1]} || version=${{ github.sha }}
3131 echo "VERSION=${version}" >> $GITHUB_ENV
3232
3333 - name : Create version overlay
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ jobs:
181181 - bundle
182182 - webhook-image
183183 - setup-ca-certs-image
184- if : ${{ startsWith(github.ref, 'refs/heads/release/ ') }}
184+ if : ${{ startsWith(github.ref, 'refs/tags/v ') }}
185185 runs-on : ubuntu-latest
186186 steps :
187187 - name : Checkout
@@ -214,7 +214,7 @@ jobs:
214214 - name : Validate release version
215215 run : |
216216 echo "GITHUB_REF=${GITHUB_REF}"
217- [[ $GITHUB_REF =~ ^refs\/heads\/release\/ (.*)$ ]] && version=${BASH_REMATCH[1]}
217+ [[ $GITHUB_REF =~ ^refs\/tags\/v (.*)$ ]] && version=${BASH_REMATCH[1]}
218218 if [[ -z "${version}" ]]; then
219219 echo "ERROR: version not detected."
220220 exit 1
You can’t perform that action at this time.
0 commit comments