File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,17 @@ jobs:
1717 - uses : actions/checkout@v3
1818 - name : Set Docker Tag
1919 id : vars
20- if : always()
2120 run : |
2221 REPOSITORY="sandbox-${GITHUB_REPOSITORY#*/}"
23- echo ::set-output name= REPOSITORY:: ${REPOSITORY}
24- if [[ ${{ github.ref }} == refs/tags* ]]; then
25- TAG=${GITHUB_REF/ refs\ /tags\//}
26- echo ::set-output name= TAG:: ${TAG}
27- echo ::set-output name= TARGET:: ${{ secrets.SLACK_WEBHOOK_PROD }}
22+ echo " REPOSITORY= ${REPOSITORY}" >> $GITHUB_OUTPUT
23+ if [[ "${GITHUB_REF}" == refs/tags/ * ]]; then
24+ TAG=" ${GITHUB_REF# refs/tags/}"
25+ echo " TAG= ${TAG}" >> $GITHUB_OUTPUT
26+ echo " TARGET= ${{ secrets.SLACK_WEBHOOK_PROD }}" >> $GITHUB_OUTPUT
2827 else
29- TAG=qa-${GITHUB_SHA::7}-$(date +%s)
30- echo ::set-output name= TAG:: ${TAG}
31- echo ::set-output name= TARGET:: ${{ secrets.SLACK_WEBHOOK }}
28+ TAG=" qa-${GITHUB_SHA::7}-$(date +%s)"
29+ echo " TAG= ${TAG}" >> $GITHUB_OUTPUT
30+ echo " TARGET= ${{ secrets.SLACK_WEBHOOK }}" >> $GITHUB_OUTPUT
3231 fi
3332 - name : Build the Docker image
3433 env :
You can’t perform that action at this time.
0 commit comments