From af98b0219dac3b4abcb10002706a545a2c613b30 Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Sat, 9 Mar 2024 11:00:33 +0800 Subject: [PATCH] Upgrade actions/checkout and softprops/action-gh-release (#12135) # Description 1. Upgrade actions/checkout 2. Upgrade softprops/action-gh-release@v2.0.1 to fix Node16 warnings here: https://github.com/nushell/nushell/actions/runs/8162649859 3. Display Archive contents for Windows release --- .github/workflows/audit.yml | 2 +- .github/workflows/ci.yml | 8 ++++---- .github/workflows/nightly-build.yml | 12 ++++++------ .github/workflows/release-pkg.nu | 2 +- .github/workflows/release.yml | 8 ++++---- .github/workflows/typos.yml | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index e6bcc2961f..22843c15e8 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -19,7 +19,7 @@ jobs: # Prevent sudden announcement of a new advisory from failing ci: continue-on-error: true steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - uses: rustsec/audit-check@v1.4.1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22c1501025..cbbf762fbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Setup Rust toolchain and cache uses: actions-rust-lang/setup-rust-toolchain@v1.8.0 @@ -86,7 +86,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Setup Rust toolchain and cache uses: actions-rust-lang/setup-rust-toolchain@v1.8.0 @@ -118,7 +118,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Setup Rust toolchain and cache uses: actions-rust-lang/setup-rust-toolchain@v1.8.0 @@ -164,7 +164,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Setup Rust toolchain and cache uses: actions-rust-lang/setup-rust-toolchain@v1.8.0 diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 03c5a07547..723c46ba79 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -27,7 +27,7 @@ jobs: # if: github.repository == 'nushell/nightly' steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 if: github.repository == 'nushell/nightly' with: ref: main @@ -123,7 +123,7 @@ jobs: runs-on: ${{matrix.os}} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 with: ref: main fetch-depth: 0 @@ -174,7 +174,7 @@ jobs: # REF: https://github.com/marketplace/actions/gh-release # Create a release only in nushell/nightly repo - name: Publish Archive - uses: softprops/action-gh-release@v0.1.15 + uses: softprops/action-gh-release@v2.0.1 if: ${{ startsWith(github.repository, 'nushell/nightly') }} with: prerelease: true @@ -235,7 +235,7 @@ jobs: runs-on: ${{matrix.os}} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 with: ref: main fetch-depth: 0 @@ -286,7 +286,7 @@ jobs: # REF: https://github.com/marketplace/actions/gh-release # Create a release only in nushell/nightly repo - name: Publish Archive - uses: softprops/action-gh-release@v0.1.15 + uses: softprops/action-gh-release@v2.0.1 if: ${{ startsWith(github.repository, 'nushell/nightly') }} with: draft: false @@ -310,7 +310,7 @@ jobs: - name: Waiting for Release run: sleep 1800 - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 with: ref: main diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index 2400f523af..7ff5059e86 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -195,7 +195,7 @@ if $os in ['macos-latest'] or $USE_UBUNTU { } else { - print $'(char nl)(ansi g)Archive contents:(ansi reset)'; hr-line; ls + print $'(char nl)(ansi g)Archive contents:(ansi reset)'; hr-line; ls | print let archive = $'($dist)/($releaseStem).zip' 7z a $archive ...(glob *) let pkg = (ls -f $archive | get name) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c03bcd12b9..6c69506ae1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,7 @@ jobs: runs-on: ${{matrix.os}} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Update Rust Toolchain Target run: | @@ -102,7 +102,7 @@ jobs: # REF: https://github.com/marketplace/actions/gh-release - name: Publish Archive - uses: softprops/action-gh-release@v0.1.15 + uses: softprops/action-gh-release@v2.0.1 if: ${{ startsWith(github.ref, 'refs/tags/') }} with: draft: true @@ -161,7 +161,7 @@ jobs: runs-on: ${{matrix.os}} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Update Rust Toolchain Target run: | @@ -191,7 +191,7 @@ jobs: # REF: https://github.com/marketplace/actions/gh-release - name: Publish Archive - uses: softprops/action-gh-release@v0.1.15 + uses: softprops/action-gh-release@v2.0.1 if: ${{ startsWith(github.ref, 'refs/tags/') }} with: draft: true diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index 3a8be1f25f..ce5ee4b8e0 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Actions Repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 - name: Check spelling uses: crate-ci/typos@v1.19.0