From 138dcc9f06a3b16d309353abce0c8304a6e92d1d Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 15 Jan 2024 20:26:44 -0700 Subject: [PATCH] update github workflow action versions (#20) * chore: update to actions/checkout@v4 * chore: update to actions/configure-pages@v4 * chore: update to actions/deploy-pages@v4 * chore: actions/setup-go@v5 * chore: update to actions/upload-artifact@v4 * chore: actions/setup-python@v5 * chore: actions/upload-pages-artifact@v3 * chore: update to docker/login-action@v3 * chore: update docker actions * update goreleaser-action to v5 --- .github/workflows/docs.yaml | 10 +++++----- .github/workflows/release.yml | 16 ++++++++-------- .github/workflows/tests.yml | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 9a16bd250..cb36d46c3 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -27,11 +27,11 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.x - name: setup cache @@ -51,10 +51,10 @@ jobs: run: | mkdocs build - name: upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: # Upload entire repository path: public/ - name: deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b49741264..8c705ba0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,27 +20,27 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'push' with: fetch-depth: 0 - name: setup-go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: 1.21.x - name: setup qemu id: qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: setup docker buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -67,7 +67,7 @@ jobs: run: | echo "GORELEASER_ARGS=--snapshot --skip-publish" >> $GITHUB_ENV - name: run goreleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest @@ -81,7 +81,7 @@ jobs: docker images --format "{{.Repository}}:{{.Tag}}" | grep "ekristen/aws-nuke" | xargs -L1 docker push - name: upload artifacts if: github.event.pull_request.base.ref == 'main' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: binaries path: releases/*.tar.gz diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fd5f54773..ba4caeb7e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,8 +8,8 @@ jobs: name: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: 1.21.x - name: download go mods