3434 if : steps.regex-match.outputs.group1 != ''
3535 run : |
3636 echo "::set-output name=applicable::true"
37- echo "This is a release commit: ${{ steps.regex-match.outputs.group1 }}"
37+ echo "This is a release commit: ${STEPS_REGEX_MATCH_OUTPUTS_GROUP1}"
38+ env :
39+ STEPS_REGEX_MATCH_OUTPUTS_GROUP1 : ${{ steps.regex-match.outputs.group1 }}
3840 outputs :
3941 applicable : ${{ steps.check-commit-message.outputs.applicable }}
4042 version : ${{ steps.regex-match.outputs.group1 }}
@@ -54,15 +56,17 @@ jobs:
5456
5557 - name : Calculate Tag and Release names
5658 run : |
57- echo TAG_NAME="v${{ needs.check.outputs.version }}" >> $GITHUB_ENV
58- echo RELEASE_NAME="v${{ needs.check.outputs.version }} Release" >> $GITHUB_ENV
59+ echo TAG_NAME="v${NEEDS_CHECK_OUTPUTS_VERSION}" >> $GITHUB_ENV
60+ echo RELEASE_NAME="v${NEEDS_CHECK_OUTPUTS_VERSION} Release" >> $GITHUB_ENV
61+ env :
62+ NEEDS_CHECK_OUTPUTS_VERSION : ${{ needs.check.outputs.version }}
5963
6064 - name : Create and push Tag
6165 run : |
6266 git config --local user.email "action@github.com"
6367 git config --local user.name "GitHub Action"
64- git tag -a ${{ env. TAG_NAME }} -m "${{ env. RELEASE_NAME } }"
65- git push origin ${{ env. TAG_NAME } }
68+ git tag -a ${TAG_NAME} -m "${RELEASE_NAME}"
69+ git push origin ${TAG_NAME}
6670
6771 - name : Install gsutil
6872 run : |
@@ -78,20 +82,20 @@ jobs:
7882 while [ $found -lt 10 -a $retries -gt 0 ]
7983 do
8084 sleep 3m
81- found=$(gsutil du gs://skaffold/releases/${{ env. TAG_NAME } }/ | wc -l)
85+ found=$(gsutil du gs://skaffold/releases/${TAG_NAME}/ | wc -l)
8286 retries=$((retries-1))
8387 done
84- gsutil -m cp -r gs://skaffold/releases/${{ env. TAG_NAME } }/ $HOME
88+ gsutil -m cp -r gs://skaffold/releases/${TAG_NAME}/ $HOME
8589
8690 - name : Create Release
8791 shell : bash
8892 run : |
8993 curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
9094 body=$(git log -p --follow -1 CHANGELOG.md | grep '^\+' | cut -c 2- | tail -n +2)
9195 assets=()
92- for asset in $HOME/${{ env. TAG_NAME } }/*; do
96+ for asset in $HOME/${TAG_NAME}/*; do
9397 assets+=("-a" "$asset")
9498 done
95- bin/hub release create "${assets[@]}" -m "${{ env. RELEASE_NAME }} " -m "$body" --draft ${{ env. TAG_NAME } }
99+ bin/hub release create "${assets[@]}" -m "${RELEASE_NAME} " -m "$body" --draft ${TAG_NAME}
96100 env :
97101 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments