Skip to content

Commit 9ceca27

Browse files
committed
ci: don't use ::set-output
It's deprecated.
1 parent 9c7b359 commit 9ceca27

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- "mysql-8.4"
1818
steps:
1919
- name: Parse ID
20-
id: parse
2120
run: |
2221
set -x
2322
if [ "${GITHUB_REF_TYPE}" = "tag" ] && [[ "${GITHUB_REF_NAME}" =~ ^${{ matrix.id }}\. ]]; then
@@ -39,12 +38,12 @@ jobs:
3938
if [ "${version}" = "mysql-8.0-latest" ]; then
4039
tags="${tags},groonga/mroonga:latest"
4140
fi
42-
echo "::set-output name=push::${push}"
43-
echo "::set-output name=tag::${tag}"
44-
echo "::set-output name=tags::${tags}"
41+
echo "PUSH=${push}" >> ${GITHUB_ENV}
42+
echo "TAG=${tag}" >> ${GITHUB_ENV}
43+
echo "TAGS=${tags}" >> ${GITHUB_ENV}
4544
- uses: actions/checkout@v4
4645
- uses: docker/login-action@v3
47-
if: steps.parse.outputs.push == 'true'
46+
if: env.PUSH == 'true'
4847
with:
4948
username: ${{ secrets.DOCKER_HUB_USERNAME }}
5049
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
@@ -56,9 +55,9 @@ jobs:
5655
# cache-from: type=gha
5756
# cache-to: type=gha,mode=max
5857
context: ${{ matrix.id }}
59-
push: ${{ steps.parse.outputs.push }}
60-
load: ${{ steps.parse.outputs.push != 'true' }}
61-
tags: ${{ steps.parse.outputs.tags }}
58+
push: ${{ env.PUSH }}
59+
load: ${{ env.PUSH != 'true' }}
60+
tags: ${{ env.TAGS }}
6261
- name: Image info
6362
run: |
6463
dockerfile=${{ matrix.id }}/Dockerfile
@@ -74,7 +73,7 @@ jobs:
7473
echo "MySQL ${mysql_version}, Mroonga ${mroonga_version}, Groonga ${groonga_version}" | tee release-title.txt
7574
cat <<RELEASE_NOTE | tee release-note.md
7675
* Commit: https://github.com/${GITHUB_REPOSITORY}/tree/${GITHUB_REF_NAME}
77-
* Tags: ${{ steps.parse.outputs.tags }}
76+
* Tags: ${TAGS}
7877
* Digest: \`${{ steps.docker_build.outputs.digest }}\`
7978
RELEASE_NOTE
8079
- name: Create GitHub Release
@@ -90,4 +89,4 @@ jobs:
9089
run: |
9190
./test.sh \
9291
"${{ matrix.id }}" \
93-
"${{ steps.parse.outputs.tag }}"
92+
"${TAG}"

0 commit comments

Comments
 (0)