From 9313b28813ff2bc575d0903fb80b84d7a416d5cd Mon Sep 17 00:00:00 2001 From: zfb132 Date: Sat, 31 Dec 2022 13:11:36 +0000 Subject: [PATCH] fix bug: remove deprecation warnings --- .github/workflows/publish-ubuntu.yaml | 13 ++++--------- .github/workflows/publish-windows.yaml | 13 ++++--------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish-ubuntu.yaml b/.github/workflows/publish-ubuntu.yaml index 9f028d6..5acb062 100644 --- a/.github/workflows/publish-ubuntu.yaml +++ b/.github/workflows/publish-ubuntu.yaml @@ -12,8 +12,8 @@ jobs: name: build and run runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: '3.10' architecture: 'x64' @@ -57,15 +57,10 @@ jobs: uses: actions/download-artifact@v3 with: name: release - - name: Prepare Release - id: prepare_release - run: | - TAG_NAME=`echo $GITHUB_REF | cut -d / -f3` - echo ::set-output name=tag_name::$TAG_NAME - name: Create Ubuntu Release run: | - mv QrScan.zip QrScan_linux_${{steps.prepare_release.outputs.tag_name}}.zip + mv QrScan.zip QrScan_linux_${{ github.ref_name }}.zip - name: Upload Ubuntu Release uses: softprops/action-gh-release@v1 with: - files: QrScan_linux_${{steps.prepare_release.outputs.tag_name}}.zip \ No newline at end of file + files: QrScan_linux_${{ github.ref_name }}.zip \ No newline at end of file diff --git a/.github/workflows/publish-windows.yaml b/.github/workflows/publish-windows.yaml index 4e7869a..a8197e8 100644 --- a/.github/workflows/publish-windows.yaml +++ b/.github/workflows/publish-windows.yaml @@ -12,8 +12,8 @@ jobs: name: build and run runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: '3.10' architecture: 'x64' @@ -53,15 +53,10 @@ jobs: uses: actions/download-artifact@v3 with: name: release - - name: Prepare Release - id: prepare_release - run: | - TAG_NAME=`echo $GITHUB_REF | cut -d / -f3` - echo ::set-output name=tag_name::$TAG_NAME - name: Create Windows Release run: | - mv QrScan.zip QrScan_windows_${{steps.prepare_release.outputs.tag_name}}.zip + mv QrScan.zip QrScan_windows_${{ github.ref_name }}.zip - name: Upload Windows Release uses: softprops/action-gh-release@v1 with: - files: QrScan_windows_${{steps.prepare_release.outputs.tag_name}}.zip \ No newline at end of file + files: QrScan_windows_${{ github.ref_name }}.zip \ No newline at end of file