From 6bfd2df2611023df23c55313016e7dfea3d3c8ba Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Wed, 24 Apr 2024 13:02:51 +0200 Subject: [PATCH] Update GitHub actions to the latest versions --- .github/auto_assign.yml | 2 ++ .github/workflows/build.yml | 4 ++-- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/docs.yml | 6 +++--- .github/workflows/external-links-check.yml | 2 +- .github/workflows/lint.yml | 4 ++-- .github/workflows/pull-request-meta.yml | 6 ++---- .github/workflows/release-management.yml | 20 ++++++++++---------- .github/workflows/test.yml | 4 ++-- 9 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 .github/auto_assign.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 00000000..05dbfc03 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,2 @@ +addAssignees: author +runOnDraft: true diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2f2c3ce..fb61994d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,10 +11,10 @@ jobs: node: [ 18, 20 ] steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js ${{ matrix.node }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} cache: npm diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c6378d25..f41c6e6a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -31,11 +31,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: javascript # If you wish to specify custom queries, you can do so here or in a config file. @@ -46,7 +46,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -60,4 +60,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index fac4e72a..4ad5b324 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.x @@ -22,7 +22,7 @@ jobs: run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: mkdocs-material-${{ env.cache_id }} path: .cache diff --git a/.github/workflows/external-links-check.yml b/.github/workflows/external-links-check.yml index 57c3455b..92344590 100644 --- a/.github/workflows/external-links-check.yml +++ b/.github/workflows/external-links-check.yml @@ -8,7 +8,7 @@ jobs: name: Markdown link check runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: gaurav-nelson/github-action-markdown-link-check@v1 with: config-file: '.github/markdown-link-check.json' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 05b1d85e..70348ac7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,10 +8,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: npm diff --git a/.github/workflows/pull-request-meta.yml b/.github/workflows/pull-request-meta.yml index c54c975e..98edccca 100644 --- a/.github/workflows/pull-request-meta.yml +++ b/.github/workflows/pull-request-meta.yml @@ -10,11 +10,9 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Assign to author - uses: samspills/assign-pr-to-author@v1.0 # specify also the minor version because v1 does not exist - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + uses: kentaro-m/auto-assign-action@v2.0.0 # Specify also the minor version because v2 does not exist - name: Add labels - uses: TimonVS/pr-labeler-action@v4 + uses: TimonVS/pr-labeler-action@v5 env: repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-management.yml b/.github/workflows/release-management.yml index 871feb95..09dfebb6 100644 --- a/.github/workflows/release-management.yml +++ b/.github/workflows/release-management.yml @@ -15,10 +15,10 @@ jobs: version_changed: ${{ steps.check_package_version.outputs.changed }} steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: npm @@ -56,7 +56,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Draft release on GitHub - uses: release-drafter/release-drafter@v5 + uses: release-drafter/release-drafter@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -67,7 +67,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # An existing release draft is published only if there is a version bump in `package.json`. # Throws an error and breaks the job if called regardless. We check for version changes in the @@ -92,10 +92,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: npm @@ -118,12 +118,12 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: npm @@ -135,7 +135,7 @@ jobs: run: npm run build - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.x @@ -143,7 +143,7 @@ jobs: run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: mkdocs-material-${{ env.cache_id }} path: .cache diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7f19013..84f39f95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 cache: npm