From 34895f04a024dd810c77681cf49704a37c9286cb Mon Sep 17 00:00:00 2001 From: Badrikesh Prusty Date: Fri, 15 Mar 2024 10:00:27 +0530 Subject: [PATCH] ci: update actions to latest version and fix nodejs deprecated warning Update github actions to: - kentaro-m/auto-assign-action: 2.0.0 - actions/checkout: 4 - actions/cache: 4 - actions/upload-artifact: 4 - actions/setup-python: 5 - crazy-max/ghaction-import-gpg: 6 - rojopolis/spellcheck-github-actions: v0 Fixes: Warnings: Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20 Signed-off-by: Badrikesh Prusty --- .github/workflows/assign.yml | 2 +- .github/workflows/main.yml | 12 ++++++------ .github/workflows/pypi.yml | 4 ++-- .github/workflows/spellcheck.yml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index 3a17f859..1ac9f7cd 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -19,4 +19,4 @@ jobs: add-reviews: runs-on: ubuntu-latest steps: - - uses: kentaro-m/auto-assign-action@v1.2.5 + - uses: kentaro-m/auto-assign-action@v2.0.0 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a0c039ba..f41c2a97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: tox run: | sudo apt install -y build-essential libsystemd-dev @@ -37,11 +37,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Free Disk Space uses: ./.github/workflows/free-disk-space - name: Cache downloads and sstate - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ hashFiles('debian/changelog') }} path: | @@ -56,7 +56,7 @@ jobs: run: | ./kas-container build kas/ci/full.yml - name: Upload NanoPI images - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: github.ref == 'refs/heads/master' with: name: mtda-nanopi-images @@ -64,7 +64,7 @@ jobs: build/tmp/deploy/images/nanopi-*/mtda-image-mtda-*-nanopi-*.wic build/tmp/deploy/images/nanopi-*/mtda-image-mtda-*-nanopi-*.wic.bmap - name: Upload BeagleBone Black images - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: github.ref == 'refs/heads/master' with: name: mtda-bbb-images @@ -82,7 +82,7 @@ jobs: - name: Import GPG key if: startsWith(github.ref, 'refs/tags/v') id: import_gpg - uses: crazy-max/ghaction-import-gpg@v4 + uses: crazy-max/ghaction-import-gpg@v6 with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index ac156a82..d8d19b29 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -25,9 +25,9 @@ jobs: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.9 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install pypa/build diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 0fb1e606..681d04a4 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: rojopolis/spellcheck-github-actions@0.34.0 + - uses: rojopolis/spellcheck-github-actions@v0 name: Spellcheck with: config_path: .github/spellcheck_config.yml