3030 if : steps.regex-match.outputs.group1 != ''
3131 run : |
3232 echo "::set-output name=applicable::true"
33- echo "This is a release commit: ${{ steps.regex-match.outputs.group1 }}"
33+ echo "This is a release commit: ${STEPS_REGEX_MATCH_OUTPUTS_GROUP1}"
34+ env :
35+ STEPS_REGEX_MATCH_OUTPUTS_GROUP1 : ${{ steps.regex-match.outputs.group1 }}
3436 outputs :
3537 applicable : ${{ steps.check-commit-message.outputs.applicable }}
3638 version : ${{ steps.regex-match.outputs.group1 }}
@@ -50,15 +52,17 @@ jobs:
5052
5153 - name : Calculate Tag and Release names
5254 run : |
53- echo TAG_NAME="v${{ needs.check.outputs.version }}" >> $GITHUB_ENV
54- echo RELEASE_NAME="v${{ needs.check.outputs.version }} Release" >> $GITHUB_ENV
55+ echo TAG_NAME="v${NEEDS_CHECK_OUTPUTS_VERSION}" >> $GITHUB_ENV
56+ echo RELEASE_NAME="v${NEEDS_CHECK_OUTPUTS_VERSION} Release" >> $GITHUB_ENV
57+ env :
58+ NEEDS_CHECK_OUTPUTS_VERSION : ${{ needs.check.outputs.version }}
5559
5660 - name : Create and push Tag
5761 run : |
5862 git config --local user.email "action@github.com"
5963 git config --local user.name "GitHub Action"
60- git tag -a ${{ env. TAG_NAME }} -m "${{ env. RELEASE_NAME } }"
61- git push origin ${{ env. TAG_NAME } }
64+ git tag -a ${TAG_NAME} -m "${RELEASE_NAME}"
65+ git push origin ${TAG_NAME}
6266
6367 - name : Install gsutil
6468 run : |
@@ -74,20 +78,20 @@ jobs:
7478 while [ $found -lt 10 -a $retries -gt 0 ]
7579 do
7680 sleep 3m
77- found=$(gsutil du gs://skaffold/releases/${{ env. TAG_NAME } }/ | wc -l)
81+ found=$(gsutil du gs://skaffold/releases/${TAG_NAME}/ | wc -l)
7882 retries=$((retries-1))
7983 done
80- gsutil -m cp -r gs://skaffold/releases/${{ env. TAG_NAME } }/ $HOME
84+ gsutil -m cp -r gs://skaffold/releases/${TAG_NAME}/ $HOME
8185
8286 - name : Create Release
8387 shell : bash
8488 run : |
8589 curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
8690 body=$(git log -p --follow -1 CHANGELOG.md | grep '^\+' | cut -c 2- | tail -n +2)
8791 assets=()
88- for asset in $HOME/${{ env. TAG_NAME } }/*; do
92+ for asset in $HOME/${TAG_NAME}/*; do
8993 assets+=("-a" "$asset")
9094 done
91- bin/hub release create "${assets[@]}" -m "${{ env. RELEASE_NAME }} " -m "$body" --draft ${{ env. TAG_NAME } }
95+ bin/hub release create "${assets[@]}" -m "${RELEASE_NAME} " -m "$body" --draft ${TAG_NAME}
9296 env :
9397 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments