From 4bc1e86841131e9e880678a91a898d79ac95067d Mon Sep 17 00:00:00 2001 From: sbwml <984419930@qq.com> Date: Sat, 22 Oct 2022 16:26:21 +0800 Subject: [PATCH] ci: fix warning --- .github/workflows/i18n-luci-18.06.yml | 14 ++++++-------- .github/workflows/release-build.yml | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/i18n-luci-18.06.yml b/.github/workflows/i18n-luci-18.06.yml index da739f7..108cf45 100644 --- a/.github/workflows/i18n-luci-18.06.yml +++ b/.github/workflows/i18n-luci-18.06.yml @@ -16,7 +16,7 @@ jobs: - x86_64 steps: - - uses: actions/checkout@main + - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -41,11 +41,9 @@ jobs: path: "*.ipk" - name: Upload packages - uses: svenstaro/upload-release-action@master - if: github.event_name == 'release' + uses: ncipollo/release-action@v1 with: - repo_token: ${{ secrets.workflow_token }} - file: "*.ipk" - tag: ${{ github.ref }} - overwrite: true - file_glob: true + token: ${{ secrets.workflow_token }} + allowUpdates: true + replacesArtifacts: true + artifacts: "*.ipk" diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 87e2192..8b836df 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -42,7 +42,7 @@ jobs: - x86_64 steps: - - uses: actions/checkout@main + - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -61,11 +61,9 @@ jobs: path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk - name: Upload packages - uses: svenstaro/upload-release-action@master - if: github.event_name == 'release' + uses: ncipollo/release-action@v1 with: - repo_token: ${{ secrets.workflow_token }} - file: "bin/packages/${{ matrix.arch }}/packages_ci/*.ipk" - tag: ${{ github.ref }} - overwrite: true - file_glob: true + token: ${{ secrets.workflow_token }} + allowUpdates: true + replacesArtifacts: true + artifacts: "bin/packages/${{ matrix.arch }}/packages_ci/*.ipk"