From e97d4b4e6b75ebdf435cb34d56a1d30cf61d4628 Mon Sep 17 00:00:00 2001 From: Markus Neteler Date: Thu, 22 Feb 2024 09:42:47 +0100 Subject: [PATCH] CI: sync action versions to main Update G83 GitHub actions to avoid deprecated nodes (Node.js 16 -> Node.js 20) --- .github/workflows/additional_checks.yml | 4 ++-- .github/workflows/clang-format-check.yml | 2 +- .github/workflows/create_release_draft.yml | 6 +++--- .github/workflows/docker.yml | 12 ++++++------ .github/workflows/gcc.yml | 2 +- .github/workflows/osgeo4w.yml | 2 +- .github/workflows/pytest.yml | 4 ++-- .github/workflows/ubuntu.yml | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/additional_checks.yml b/.github/workflows/additional_checks.yml index f08c5c4df4e..6b8f290a0d4 100644 --- a/.github/workflows/additional_checks.yml +++ b/.github/workflows/additional_checks.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout repository contents - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: fetch-depth: 31 @@ -38,7 +38,7 @@ jobs: exclude: mswindows .*\.bat .*/testsuite/data/.* - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index 889eabb2475..fb7409876cf 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -17,7 +17,7 @@ jobs: name: Formatting Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: Run clang-format style check for C/C++/Protobuf programs. uses: jidicula/clang-format-action@v4.11.0 with: diff --git a/.github/workflows/create_release_draft.yml b/.github/workflows/create_release_draft.yml index 8f519c1bd3f..283f6c7557f 100644 --- a/.github/workflows/create_release_draft.yml +++ b/.github/workflows/create_release_draft.yml @@ -22,12 +22,12 @@ jobs: steps: - name: Checks-out repository - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' @@ -93,7 +93,7 @@ jobs: asset_content_type: application/gzip - name: Make the created files available - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: always() with: name: artifacts diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a9239549898..40ae14266d3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -49,12 +49,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: fetch-depth: 0 - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: osgeo/grass-gis tags: | @@ -66,17 +66,17 @@ jobs: latest=false suffix=-${{ matrix.os }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push id: docker_build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: push: true pull: true diff --git a/.github/workflows/gcc.yml b/.github/workflows/gcc.yml index 6c8654fac10..33ab0e5e059 100644 --- a/.github/workflows/gcc.yml +++ b/.github/workflows/gcc.yml @@ -35,7 +35,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: Get dependencies run: | sudo apt-get update -y diff --git a/.github/workflows/osgeo4w.yml b/.github/workflows/osgeo4w.yml index 86f5fe5f5e8..ccd2882e340 100644 --- a/.github/workflows/osgeo4w.yml +++ b/.github/workflows/osgeo4w.yml @@ -32,7 +32,7 @@ jobs: run: | git config --global core.autocrlf false git config --global core.eol lf - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - uses: msys2/setup-msys2@v2 with: path-type: inherit diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 86847ddc9e3..20e2eb6966a 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -30,10 +30,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 713e93ffd74..0a217184ade 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -26,7 +26,7 @@ jobs: strategy: matrix: include: - - name: '22.04' + - name: "22.04" os: ubuntu-22.04 config: ubuntu-22.04 # This is without optional things but it still keeps things useful, @@ -38,7 +38,7 @@ jobs: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - name: Get dependencies run: | @@ -86,7 +86,7 @@ jobs: - name: Make HTML test report available if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: testreport-${{ matrix.config }} path: testreport