From 9b75753f4ab595f60d820a44a88c14e9c150ab01 Mon Sep 17 00:00:00 2001 From: zml Date: Wed, 4 Sep 2024 20:58:36 -0700 Subject: [PATCH] chore(deps): Bump GHA versions --- .github/workflows/build-artifact.yaml | 4 ++-- .github/workflows/build-pr.yaml | 4 ++-- .github/workflows/build.yaml | 6 +++--- .github/workflows/check-spelling.yaml | 2 +- .github/workflows/preview.yaml | 10 +++++----- .github/workflows/run-docgen.yaml | 13 +++++++------ .github/workflows/update-docgen.yaml | 2 +- 7 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-artifact.yaml b/.github/workflows/build-artifact.yaml index 35a1360..15f8f32 100644 --- a/.github/workflows/build-artifact.yaml +++ b/.github/workflows/build-artifact.yaml @@ -13,7 +13,7 @@ jobs: - name: "setup / checkout" uses: "actions/checkout@v4" - name: "setup / python ${{ env.PYTHON_VERSION }}" - uses: "actions/setup-python@v4" + uses: "actions/setup-python@v5" with: python-version: "${{ env.PYTHON_VERSION }}" cache: "pipenv" @@ -28,7 +28,7 @@ jobs: run: | pipenv run make dirhtml - name: "store output" - uses: "actions/upload-artifact@v3" + uses: "actions/upload-artifact@v4" with: name: "docs-html" path: "build/dirhtml/" diff --git a/.github/workflows/build-pr.yaml b/.github/workflows/build-pr.yaml index 81eb7de..aadff52 100644 --- a/.github/workflows/build-pr.yaml +++ b/.github/workflows/build-pr.yaml @@ -20,10 +20,10 @@ jobs: run: "echo ${{ github.event.number }} > ./pr-num.txt" - name: "pr number / publish" if: "${{ always() }}" - uses: "actions/upload-artifact@v3" + uses: "actions/upload-artifact@v4" with: name: "pr-num" path: "./pr-num.txt" retention-days: 1 - + diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bf0163d..9278f62 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -32,16 +32,16 @@ jobs: steps: - name: "artifact / restore" - uses: "actions/download-artifact@v3" + uses: "actions/download-artifact@v4" with: name: "docs-html" path: "build/dirhtml" - name: "artifact / repackage" - uses: "actions/upload-pages-artifact@v1" + uses: "actions/upload-pages-artifact@v3" with: path: "build/dirhtml" - name: "deploy / pages" id: "deployment" - uses: "actions/deploy-pages@v2" + uses: "actions/deploy-pages@v4" diff --git a/.github/workflows/check-spelling.yaml b/.github/workflows/check-spelling.yaml index c271d54..b3644ee 100644 --- a/.github/workflows/check-spelling.yaml +++ b/.github/workflows/check-spelling.yaml @@ -17,7 +17,7 @@ jobs: steps: - uses: "actions/checkout@v4" - name: "setup python ${{ env.PYTHON_VERSION }}" - uses: "actions/setup-python@v4" + uses: "actions/setup-python@v5" with: python-version: "${{ env.PYTHON_VERSION }}" cache: "pipenv" diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index d669466..9a0e067 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -24,14 +24,14 @@ jobs: steps: - uses: "actions/checkout@v4" # for pages publishing - name: "download PR" - uses: "dawidd6/action-download-artifact@v2" + uses: "dawidd6/action-download-artifact@v6" with: workflow: "${{ github.event.workflow_run.workflow_id }}" run_id: "${{ github.event.workflow_run.id }}" name: "pr-num" path: "." - name: "download dist artifact" - uses: "dawidd6/action-download-artifact@v2" + uses: "dawidd6/action-download-artifact@v6" with: workflow: "${{ github.event.workflow_run.workflow_id }}" run_id: "${{ github.event.workflow_run.id }}" @@ -39,7 +39,7 @@ jobs: path: "build/dirhtml" - name: "generate data blob" id: "data" - uses: "actions/github-script@v6" + uses: "actions/github-script@v7" with: script: | let fs = require("fs/promises"); @@ -59,7 +59,7 @@ jobs: return data - name: "publish to pages" id: "publish" - uses: "JamesIves/github-pages-deploy-action@v4.4.2" + uses: "JamesIves/github-pages-deploy-action@v4.6.4" with: branch: "main" folder: "build/dirhtml" @@ -71,7 +71,7 @@ jobs: force: true - name: "notify" if: "${{ steps.publish.outputs.deployment-status == 'success' }}" - uses: "actions/github-script@v6" + uses: "actions/github-script@v7" env: PR: "${{ fromJSON(steps.data.outputs.result).pr }}" COMMIT: "${{ github.event.workflow_run.head_sha }}" diff --git a/.github/workflows/run-docgen.yaml b/.github/workflows/run-docgen.yaml index 2832075..4b0178e 100644 --- a/.github/workflows/run-docgen.yaml +++ b/.github/workflows/run-docgen.yaml @@ -27,18 +27,19 @@ jobs: with: fetch-depth: 0 - name: "setup / java ${{ env.JAVA_VERSION }}" - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{ env.JAVA_VERSION }} - - name: "build / run gradle for generators" - uses: gradle/gradle-build-action@v2 + - name: "setup / gradle" + uses: gradle/actions/setup-gradle@v4 with: cache-read-only: "${{ github.event_name == 'pull_request' }}" - build-root-directory: docgen/ - arguments: ${{ inputs.gradle_arguments }} + - name: "build / run gradle for generators" + working-directory: "docgen/" + run: ./gradlew ${{ inputs.gradle_arguments }} - name: "upload artifacts" - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-output path: ${{ inputs.artifact_pattern }} diff --git a/.github/workflows/update-docgen.yaml b/.github/workflows/update-docgen.yaml index c2251d8..a7d1bef 100644 --- a/.github/workflows/update-docgen.yaml +++ b/.github/workflows/update-docgen.yaml @@ -40,7 +40,7 @@ jobs: with: token: "${{ steps.token.outputs.token }}" - name: "extract generated artifact" - uses: "actions/download-artifact@v3" + uses: "actions/download-artifact@v4" with: name: "build-output" path: source/generated