From 78d9317f0369034325c5df6344373ee0ad3e5da8 Mon Sep 17 00:00:00 2001 From: Hannes Date: Thu, 28 Nov 2024 09:09:01 +0800 Subject: [PATCH] Upgrade GitHub Actions --- .github/workflows/bundle.yaml | 2 +- .github/workflows/generate-docs.yaml | 6 +++--- .github/workflows/run-pre-commit.yaml | 6 +++--- .github/workflows/test.yaml | 2 +- .github/workflows/update-draft-release.yaml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bundle.yaml b/.github/workflows/bundle.yaml index 1b100f0..0b8741e 100644 --- a/.github/workflows/bundle.yaml +++ b/.github/workflows/bundle.yaml @@ -14,7 +14,7 @@ jobs: contents: write steps: - name: Check out the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Roc uses: hasnep/setup-roc@main with: diff --git a/.github/workflows/generate-docs.yaml b/.github/workflows/generate-docs.yaml index 978ada5..c85bf27 100644 --- a/.github/workflows/generate-docs.yaml +++ b/.github/workflows/generate-docs.yaml @@ -15,7 +15,7 @@ jobs: id-token: write steps: - name: Check out the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Roc uses: hasnep/setup-roc@main with: @@ -26,8 +26,8 @@ jobs: run: | find generated-docs/ -type f -name '*.html' -exec sed -i "s/\(href\|src\)=\"\//\1=\"\/${{ github.event.repository.name }}\//g" {} + - name: Upload docs artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: generated-docs - name: Deploy docs - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/run-pre-commit.yaml b/.github/workflows/run-pre-commit.yaml index 2c62138..1cae5ed 100644 --- a/.github/workflows/run-pre-commit.yaml +++ b/.github/workflows/run-pre-commit.yaml @@ -14,9 +14,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" - name: Install Roc @@ -24,7 +24,7 @@ jobs: with: roc-version: nightly - name: Run Pre-commit - uses: pre-commit/action@v3.0.0 + uses: pre-commit/action@v3.0.1 env: # Prevent this action failing when running on the main branch SKIP: no-commit-to-branch diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 84e4b40..2134067 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -20,7 +20,7 @@ jobs: contents: write steps: - name: Check out the repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Roc uses: hasnep/setup-roc@main with: diff --git a/.github/workflows/update-draft-release.yaml b/.github/workflows/update-draft-release.yaml index 4fac189..198fe04 100644 --- a/.github/workflows/update-draft-release.yaml +++ b/.github/workflows/update-draft-release.yaml @@ -19,7 +19,7 @@ jobs: steps: - name: Update the draft release id: update-draft-release - uses: release-drafter/release-drafter@v5 + uses: release-drafter/release-drafter@v6 with: config-name: release-drafter.yaml disable-autolabeler: true