3535 if : steps.regex-match.outputs.group1 != ''
3636 run : |
3737 echo "::set-output name=applicable::true"
38- echo "This is a release commit: ${{ steps.regex-match.outputs.group1 }}"
38+ echo "This is a release commit: ${STEPS_REGEX_MATCH_OUTPUTS_GROUP1}"
39+ env :
40+ STEPS_REGEX_MATCH_OUTPUTS_GROUP1 : ${{ steps.regex-match.outputs.group1 }}
3941 outputs :
4042 applicable : ${{ steps.check-commit-message.outputs.applicable }}
4143 version : ${{ steps.regex-match.outputs.group1 }}
@@ -55,15 +57,17 @@ jobs:
5557
5658 - name : Calculate Tag and Release names
5759 run : |
58- echo TAG_NAME="v${{ needs.check.outputs.version }}" >> $GITHUB_ENV
59- echo RELEASE_NAME="v${{ needs.check.outputs.version }} Release" >> $GITHUB_ENV
60+ echo TAG_NAME="v${NEEDS_CHECK_OUTPUTS_VERSION}" >> $GITHUB_ENV
61+ echo RELEASE_NAME="v${NEEDS_CHECK_OUTPUTS_VERSION} Release" >> $GITHUB_ENV
62+ env :
63+ NEEDS_CHECK_OUTPUTS_VERSION : ${{ needs.check.outputs.version }}
6064
6165 - name : Create and push Tag
6266 run : |
6367 git config --local user.email "action@github.com"
6468 git config --local user.name "GitHub Action"
65- git tag -a ${{ env. TAG_NAME }} -m "${{ env. RELEASE_NAME } }"
66- git push origin ${{ env. TAG_NAME } }
69+ git tag -a ${TAG_NAME} -m "${RELEASE_NAME}"
70+ git push origin ${TAG_NAME}
6771
6872 - name : Install gsutil
6973 run : |
@@ -79,20 +83,20 @@ jobs:
7983 while [ $found -lt 10 -a $retries -gt 0 ]
8084 do
8185 sleep 3m
82- found=$(gsutil du gs://skaffold/releases/${{ env. TAG_NAME } }/ | wc -l)
86+ found=$(gsutil du gs://skaffold/releases/${TAG_NAME}/ | wc -l)
8387 retries=$((retries-1))
8488 done
85- gsutil -m cp -r gs://skaffold/releases/${{ env. TAG_NAME } }/ $HOME
89+ gsutil -m cp -r gs://skaffold/releases/${TAG_NAME}/ $HOME
8690
8791 - name : Create Release
8892 shell : bash
8993 run : |
9094 curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
9195 body=$(git log -p --follow -1 CHANGELOG.md | grep '^\+' | cut -c 2- | tail -n +2)
9296 assets=()
93- for asset in $HOME/${{ env. TAG_NAME } }/*; do
97+ for asset in $HOME/${TAG_NAME}/*; do
9498 assets+=("-a" "$asset")
9599 done
96- bin/hub release create "${assets[@]}" -m "${{ env. RELEASE_NAME }} " -m "$body" --draft ${{ env. TAG_NAME } }
100+ bin/hub release create "${assets[@]}" -m "${RELEASE_NAME} " -m "$body" --draft ${TAG_NAME}
97101 env :
98102 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments