Skip to content

Commit 72e88b6

Browse files
authored
Update Sandbox.yml
1 parent eeef4a5 commit 72e88b6

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/Sandbox.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)