Skip to content

Commit 80f2153

Browse files
committed
升级$GITHUB_OUTPUT
1 parent dc1fefc commit 80f2153

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
id: vars
2020
working-directory: ${{ matrix.major }}/${{ matrix.os }}
2121
run: |
22-
echo ::set-output name=repository::${GITHUB_ACTOR}/$(basename ${GITHUB_REPOSITORY})
23-
echo ::set-output name=version::$(grep ' HFISH_VERSION ' Dockerfile | awk -F '[. ]' '{print $3"."$4"."$5}')
24-
echo ::set-output name=minor_version::$(grep ' HFISH_VERSION ' Dockerfile | awk -F '[. ]' '{print $3"."$4}')
25-
echo ::set-output name=major_version::$(grep ' HFISH_VERSION ' Dockerfile | awk -F '[. ]' '{print $3}')
26-
echo ::set-output name=workdir::${{ matrix.major }}/${{ matrix.os }}
22+
echo "repository=${GITHUB_ACTOR}/$(basename ${GITHUB_REPOSITORY})" >> $GITHUB_OUTPUT
23+
echo "version=$(grep ' HFISH_VERSION ' Dockerfile | awk -F '[. ]' '{print $3"."$4"."$5}')" >> $GITHUB_OUTPUT
24+
echo "minor_version=$(grep ' HFISH_VERSION ' Dockerfile | awk -F '[. ]' '{print $3"."$4}')" >> $GITHUB_OUTPUT
25+
echo "major_version=$(grep ' HFISH_VERSION ' Dockerfile | awk -F '[. ]' '{print $3}')" >> $GITHUB_OUTPUT
26+
echo "workdir=${{ matrix.major }}/${{ matrix.os }}" >> $GITHUB_OUTPUT
2727
- name: Set up QEMU
2828
uses: docker/setup-qemu-action@v1
2929
- name: Set up Docker Buildx

.github/workflows/dockerhub.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set variables
1313
id: vars
1414
run: |
15-
echo ::set-output name=repository::${GITHUB_ACTOR}/$(basename ${GITHUB_REPOSITORY})
15+
echo "repository=${GITHUB_ACTOR}/$(basename ${GITHUB_REPOSITORY})" >> $GITHUB_OUTPUT
1616
- name: Docker Hub Description
1717
uses: peter-evans/dockerhub-description@v3
1818
with:

0 commit comments

Comments
 (0)