diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8153795..2c6c4af 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -31,7 +31,7 @@ jobs: retention-days: 14 - name: '上传镜像包到 Release' if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/v') - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: tag_name: ${{ github.event.release.tag_name || github.ref_name }} files: 'simulator-image.tar.gz' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 65c5f73..5880e3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,7 +74,7 @@ jobs: - name: '上传到 Release' if: github.event_name != 'workflow_dispatch' || github.event.inputs.tag != '' - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: tag_name: ${{ github.event.inputs.tag || github.event.release.tag_name || github.ref_name }} name: 'Simulator v${{ github.event.inputs.tag || github.event.release.tag_name || github.ref_name }}'