From cd5250c09fe5ab68acd076f9a1f866462dc88d9e Mon Sep 17 00:00:00 2001 From: DLmaster Date: Fri, 6 Sep 2024 21:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=9C=80=E6=96=B0=E8=AF=AD?= =?UTF-8?q?=E6=B3=95=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python-app.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 56b5a0f..bdef058 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -72,7 +72,7 @@ jobs: id: read_version run: | $VERSION=(Get-Content -Path "更新说明.txt" -TotalCount 1).Trim() - echo "::set-output name=version::$VERSION" + echo "version=$VERSION" >> $GITHUB_OUTPUT - name: Upload Artifact uses: actions/upload-artifact@v4 with: @@ -105,9 +105,9 @@ jobs: run: | release_id=$(gh release view $(head -n 1 更新说明.txt) --json id --jq .id) if [[ -z $release_id ]]; then - echo "::set-output name=release_exists::false" + echo "release_exists=false" >> $GITHUB_OUTPUT else - echo "::set-output name=release_exists::true" + echo "release_exists=true" >> $GITHUB_OUTPUT fi env: GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}