From a78edc0605497a515b328348f07cdd92645314da Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Wed, 24 Jul 2024 12:54:54 +0200 Subject: [PATCH 1/2] updated action to latest version --- .github/workflows/changelog.yml | 2 +- ...check-features.yaml => check-features.yml} | 4 ++-- .github/workflows/check-migrations.yml | 4 ++-- .github/workflows/clippy.yml | 2 +- .github/workflows/fmt.yml | 2 +- .github/workflows/release.yml | 22 +++++++++---------- .github/workflows/test.yml | 12 +++++----- 7 files changed, 24 insertions(+), 24 deletions(-) rename .github/workflows/{check-features.yaml => check-features.yml} (93%) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 5dbb738b70..52b6801f9b 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -40,7 +40,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Verify run: .github/changelog-processor.py CHANGELOG.md --validate-changelog diff --git a/.github/workflows/check-features.yaml b/.github/workflows/check-features.yml similarity index 93% rename from .github/workflows/check-features.yaml rename to .github/workflows/check-features.yml index f816bcd37e..6b67389ca7 100644 --- a/.github/workflows/check-features.yaml +++ b/.github/workflows/check-features.yml @@ -13,8 +13,8 @@ concurrency: cancel-in-progress: true jobs: - name: Check workspace features check: + name: Check workspace features runs-on: ubuntu-22.04 steps: @@ -28,7 +28,7 @@ jobs: run: cargo install --locked -q zepter && zepter --version - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Dont clone historic commits. diff --git a/.github/workflows/check-migrations.yml b/.github/workflows/check-migrations.yml index 6b073bdb1f..fb433d7257 100644 --- a/.github/workflows/check-migrations.yml +++ b/.github/workflows/check-migrations.yml @@ -26,7 +26,7 @@ jobs: runtime: ${{ steps.runtime.outputs.runtime }} name: Extract tasks from matrix steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: runtime run: | # Filter out runtimes that don't have a URI @@ -51,7 +51,7 @@ jobs: runtime: ${{ fromJSON(needs.runtime-matrix.outputs.runtime) }} steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build EXTRA_ARGS run: | diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index cec099296a..2aadfd20d8 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -20,7 +20,7 @@ jobs: run: sudo apt update && sudo apt install --assume-yes cmake protobuf-compiler - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set rust version via common env file run: cat .github/env >> $GITHUB_ENV diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index 11e1139cf5..11d4df7372 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set rust version via common env file run: cat .github/env >> $GITHUB_ENV diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db876ccf9a..1d32645964 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: should-release: ${{ steps.run.outputs.should-release }} version: ${{ steps.run.outputs.version }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: run run: | echo "should-release=$(.github/changelog-processor.py CHANGELOG.md --should-release)" >> $GITHUB_OUTPUT @@ -26,7 +26,7 @@ jobs: outputs: runtime: ${{ steps.runtime.outputs.runtime }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: runtime run: | TASKS=$(echo $(cat .github/workflows/runtimes-matrix.json) | sed 's/ //g' ) @@ -41,10 +41,10 @@ jobs: runtime: ${{ fromJSON(needs.runtime-matrix.outputs.runtime) }} steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Cache target dir - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: "${{ github.workspace }}/${{ matrix.runtime.path }}/target" key: srtool-target-${{ matrix.runtime.path }}-${{ matrix.runtime.name }}-${{ github.sha }} @@ -68,13 +68,13 @@ jobs: echo '${{ steps.srtool_build.outputs.json }}' | jq > ${{ matrix.runtime.name }}_srtool_output.json - name: Upload ${{ matrix.runtime.name }} srtool json - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.runtime.name }}-srtool-json path: ${{ matrix.runtime.name }}_srtool_output.json - name: Upload ${{ matrix.runtime.name }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.runtime.name }} path: | @@ -88,13 +88,13 @@ jobs: asset_upload_url: ${{ steps.create-release.outputs.upload_url }} steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download srtool json output - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Archive context output - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: release-notes-context path: | @@ -170,10 +170,10 @@ jobs: runtime: ${{ fromJSON(needs.runtime-matrix.outputs.runtime) }} steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Get runtime info env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 547d17fe9b..7b5bcbaf39 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: runtime: ${{ steps.runtime.outputs.runtime }} name: Extract runtimes from matrix steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: runtime run: | TASKS=$(echo $(cat .github/workflows/runtimes-matrix.json) | sed 's/ //g' ) @@ -35,7 +35,7 @@ jobs: itest: ${{ steps.itest.outputs.itest }} name: Extract integration tests from matrix steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: itest run: | TASKS=$(echo $(cat .github/workflows/integration-tests-matrix.json) | sed 's/ //g' ) @@ -65,7 +65,7 @@ jobs: df -h - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set rust version via common env file run: cat .github/env >> $GITHUB_ENV @@ -121,7 +121,7 @@ jobs: df -h - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set rust version via common env file run: cat .github/env >> $GITHUB_ENV @@ -167,7 +167,7 @@ jobs: df -h - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set rust version via common env file run: cat .github/env >> $GITHUB_ENV @@ -215,7 +215,7 @@ jobs: df -h - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set rust version via common env file run: cat .github/env >> $GITHUB_ENV From b55f8a70a57257ae25626b22062f8a86220c130e Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Wed, 24 Jul 2024 12:57:24 +0200 Subject: [PATCH 2/2] added TODO to deprecated actions --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d32645964..9d5deb9e7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -150,6 +150,7 @@ jobs: - name: Create release id: create-release + # TODO: Replace as it has been deprecated uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -183,6 +184,7 @@ jobs: >>$GITHUB_ENV echo SPEC=$(<${JSON} jq -r .runtimes.compact.subwasm.core_version.specVersion) - name: Upload compressed ${{ matrix.runtime.name }} v${{ env.SPEC }} wasm + # TODO: Replace as it has been deprecated uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}