Skip to content

Commit 6d69ba1

Browse files
authoredFeb 3, 2023
dev: replace deprecated command with environment file (#3558)
1 parent 5a9bd92 commit 6d69ba1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
 

‎.github/workflows/tag.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ jobs:
6060
MAJOR=${TAG%.*}
6161
SHORT_COMMIT=${GITHUB_SHA::8}
6262
DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
63-
echo ::set-output name=tag_name::${TAG}
64-
echo ::set-output name=major_tag::${MAJOR}
65-
echo ::set-output name=short_commit::${SHORT_COMMIT}
66-
echo ::set-output name=date::${DATE}
63+
echo tag_name=${TAG} >> $GITHUB_OUTPUT
64+
echo major_tag=${MAJOR} >> $GITHUB_OUTPUT
65+
echo short_commit=${SHORT_COMMIT} >> $GITHUB_OUTPUT
66+
echo date=${DATE} >> $GITHUB_OUTPUT
6767
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
68-
echo ::set-output name=full_tag_name::${TAG}-alpine
69-
echo ::set-output name=full_major_tag::${MAJOR}-alpine
70-
echo ::set-output name=latest_tag::latest-alpine
68+
echo full_tag_name=${TAG}-alpine >> $GITHUB_OUTPUT
69+
echo full_major_tag=${MAJOR}-alpine >> $GITHUB_OUTPUT
70+
echo latest_tag=latest-alpine >> $GITHUB_OUTPUT
7171
else
72-
echo ::set-output name=full_tag_name::${TAG}
73-
echo ::set-output name=full_major_tag::${MAJOR}
74-
echo ::set-output name=latest_tag::latest
72+
echo full_tag_name=${TAG} >> $GITHUB_OUTPUT
73+
echo full_major_tag=${MAJOR} >> $GITHUB_OUTPUT
74+
echo latest_tag=latest >> $GITHUB_OUTPUT
7575
fi
7676
7777
- name: Set up QEMU

0 commit comments

Comments
 (0)
Please sign in to comment.