From 8f9d240bbbac9860b9e62d10c1e10b882a92de1f Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Thu, 4 Jul 2024 09:43:48 +0200 Subject: [PATCH] Update workflows to use latest versions of actions --- .github/workflows/build-docker.yaml | 10 +++++----- .github/workflows/update_version.yml | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index c668194..1bce285 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -18,7 +18,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: 'Checkout' - uses: 'actions/checkout@v3' + uses: 'actions/checkout@v4' with: ref: '${{ github.head_ref }}' @@ -27,21 +27,21 @@ jobs: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Login to Dockerhub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2.9.1 + uses: docker/setup-buildx-action@v3.4.0 - name: Set up QEMU id: qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Build and push images - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: push: true builder: ${{ steps.buildx.outputs.name }} diff --git a/.github/workflows/update_version.yml b/.github/workflows/update_version.yml index 8343096..c8f59bc 100644 --- a/.github/workflows/update_version.yml +++ b/.github/workflows/update_version.yml @@ -13,7 +13,7 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: master fetch-depth: '0' @@ -31,7 +31,7 @@ jobs: cat action.yml - name: "Commit changes" - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 id: commit with: commit_author: "Oskar Stark " @@ -40,7 +40,7 @@ jobs: commit_user_name: "Oskar Stark" - name: "Tag version ${{ steps.fetch_version.outputs.latest }}" - uses: "anothrNick/github-tag-action@1.30.0" + uses: "anothrNick/github-tag-action@1.67.0" if: steps.commit.outputs.changes_detected == 'true' id: tag env: @@ -61,15 +61,15 @@ jobs: publish_docker_images: needs: [update-version] - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest if: github.ref == 'refs/heads/master' || github.event_name == 'release' steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Docker meta id: meta - uses: crazy-max/ghaction-docker-meta@v2 + uses: crazy-max/ghaction-docker-meta@v3 with: images: oskarstark/php-cs-fixer-ga tags: | @@ -79,12 +79,12 @@ jobs: latest=false - name: Login to DockerHub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . push: ${{ github.event_name != 'pull_request' }}