File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ jobs:
53
53
if : github.event_name != 'pull_request'
54
54
run : |
55
55
# shellcheck disable=SC2086
56
- RC="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | sed -e 's/^.*://')"
57
- if [[ "${RC}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && ! git show-ref --tags --verify --quiet "refs/tags/v${RC}" ; then
58
- echo "RELEASE=${RC}" >> "${GITHUB_ENV}"
56
+ RC="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | \head -n 1 | \ sed -e 's/^.*://')"
57
+ if [[ "${RC}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && ! \ git show-ref --tags --verify --quiet "refs/tags/v${RC}" ; then
58
+ \ echo "RELEASE=${RC}" >> "${GITHUB_ENV}"
59
59
fi
60
60
- name : Trigger release
61
- if : env.RELEASE == true
61
+ if : ${{ env.RELEASE != '' }}
62
62
uses : actions/create-release@v1
63
63
env :
64
64
GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
You can’t perform that action at this time.
0 commit comments