File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 5050 if : github.ref == 'refs/heads/main'
5151 run : |
5252 # shellcheck disable=SC2086
53- VERSION="$(\grep ${REPOSITORY}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/[-_][^:]*@.*$//; s/^.*://;')"
54- if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\. [0-9]+$ ]] ; then
53+ VERSION="$(\grep ${REPOSITORY}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/[-_][^:]*@.*$//; s/^.*://; s/\.\([0-9]\)*$/-\1/; ')"
54+ if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+\- [0-9]+$ ]] ; then
5555 \echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"
5656 fi
5757 - name : Check if release already exists
Original file line number Diff line number Diff line change 2626 type=ref,event=branch
2727 type=ref,event=pr
2828 type=semver,pattern={{version}}
29+ type=semver,pattern={{major}}.{{minor}}.{{patch}}
2930 type=semver,pattern={{major}}.{{minor}}
3031 type=semver,pattern={{major}}
3132 type=sha
You can’t perform that action at this time.
0 commit comments