From bb3a07cd15baea7fc3debb2df260c7a8b1f9c976 Mon Sep 17 00:00:00 2001 From: Markson Hon <50002150+MarksonHon@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:45:25 +0800 Subject: [PATCH] ci: update actions/checkout@v3 to actions/checkout@v4 (#461) Co-authored-by: Markson Hon --- .github/workflows/check-docs.yml | 2 +- .github/workflows/docker.yml | 2 +- .github/workflows/generate-changelogs.yml | 2 +- .github/workflows/prerelease.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/seed-build.yml | 16 ++-------------- .github/workflows/sync-docs.yml | 4 ++-- 7 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index 34189acc5..d11b198c8 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 56ac2d4c3..f6027be0c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout codebase - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Prepare diff --git a/.github/workflows/generate-changelogs.yml b/.github/workflows/generate-changelogs.yml index 8ca1a7152..0e041b8b1 100644 --- a/.github/workflows/generate-changelogs.yml +++ b/.github/workflows/generate-changelogs.yml @@ -21,7 +21,7 @@ jobs: permissions: issues: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Generate release changelogs uses: daeuniverse/changelogs-generator-action@main diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 69e271daa..c9fba77d8 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -49,7 +49,7 @@ jobs: steps: - name: Checkout codebase - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41f8669d2..a20f5cf3e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: steps: - name: Checkout codebase - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/seed-build.yml b/.github/workflows/seed-build.yml index 74567535e..e29aa86ef 100644 --- a/.github/workflows/seed-build.yml +++ b/.github/workflows/seed-build.yml @@ -66,7 +66,7 @@ jobs: steps: - name: Checkout codebase - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.ref }} fetch-depth: 0 @@ -131,22 +131,10 @@ jobs: if: matrix.goarch == 'amd64' && matrix.goamd64 == 'v1' run: ./build/dae-$ASSET_NAME --version - - name: Create binary ZIP archive and Signature - run: | - pushd build || exit 1 - zip -9vr ../dae-$ASSET_NAME.zip . - popd || exit 1 - FILE=./dae-$ASSET_NAME.zip - DGST=$FILE.dgst - md5sum $FILE >>$DGST - shasum -a 1 $FILE >>$DGST - shasum -a 256 $FILE >>$DGST - shasum -a 512 $FILE >>$DGST - - name: Upload files to Artifacts uses: actions/upload-artifact@v3 with: - name: dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip + name: dae-${{ steps.get_filename.outputs.ASSET_NAME }} path: build/* - name: Report result diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 862b70aa8..e51296979 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -33,7 +33,7 @@ jobs: git_commit_msg: ${{ steps.export.outputs.git_commit_msg }} git_run_number: ${{ steps.export.outputs.git_run_number }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get metadata from HEAD sha id: export run: | @@ -59,7 +59,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout to daeuniverse/dae-docs - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: daeuniverse/dae-docs fetch-depth: 0