From 3570dfb2b386f597c9c54fade826d5fa201d2bf0 Mon Sep 17 00:00:00 2001 From: dennis-avesani-zupit Date: Mon, 8 Apr 2024 11:36:05 +0200 Subject: [PATCH] feat(ZCH-70): update checkout action from v3 to v4 --- .github/workflows/conventional-commits-step-release.yml | 2 +- .github/workflows/django-step-lint-check.yml | 4 ++-- .github/workflows/django-step-tests.yml | 4 ++-- .github/workflows/docker-step-build-and-push-image.yml | 2 +- .github/workflows/docker-step-deploy.yml | 2 +- .../workflows/dotnet-step-azure-webapp-build-and-deploy.yml | 2 +- .github/workflows/dotnet-workflow-common.yml | 2 +- .../workflows/node-step-azure-storage-build-and-deploy.yml | 2 +- .github/workflows/node-step-docker-build-and-push-image.yml | 4 ++-- .github/workflows/node-step-format-lint-build.yml | 2 +- .github/workflows/node-step-test-cypress.yml | 2 +- .github/workflows/python-azure-function-build-and-deploy.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/sonar-step-analyze.yml | 2 +- .github/workflows/sonar-step-dotnet-analyze.yml | 2 +- .github/workflows/sonar-step-flutter-analyze.yml | 2 +- .../workflows/springboot-step-docker-build-and-push-image.yml | 2 +- .github/workflows/springboot-step-lint-check.yml | 2 +- .github/workflows/springboot-step-tests.yml | 2 +- README.md | 2 +- 20 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/conventional-commits-step-release.yml b/.github/workflows/conventional-commits-step-release.yml index fcf7dec1..e216a770 100644 --- a/.github/workflows/conventional-commits-step-release.yml +++ b/.github/workflows/conventional-commits-step-release.yml @@ -25,7 +25,7 @@ jobs: container: image: ${{ inputs.DIND_IMAGE }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false diff --git a/.github/workflows/django-step-lint-check.yml b/.github/workflows/django-step-lint-check.yml index 48fa14ab..a99e63a5 100644 --- a/.github/workflows/django-step-lint-check.yml +++ b/.github/workflows/django-step-lint-check.yml @@ -68,11 +68,11 @@ jobs: if: ${{ inputs.ENABLE_LFS == true }} run: apt-get update && apt-get install -y git-lfs - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 if: ${{ inputs.ENABLE_LFS == true }} with: lfs: 'true' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: ${{ inputs.ENABLE_LFS == false }} - run: git config --global --add safe.directory /__w/mobygis-waterjade/mobygis-waterjade if: ${{ inputs.ENABLE_LFS == true }} diff --git a/.github/workflows/django-step-tests.yml b/.github/workflows/django-step-tests.yml index 057a2416..57a17784 100644 --- a/.github/workflows/django-step-tests.yml +++ b/.github/workflows/django-step-tests.yml @@ -76,11 +76,11 @@ jobs: - name: Install prerequisites if: ${{ inputs.ENABLE_LFS == true }} run: apt-get update && apt-get install -y git-lfs - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: ${{ inputs.ENABLE_LFS == true }} with: lfs: 'true' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: ${{ inputs.ENABLE_LFS == false }} - run: git config --global --add safe.directory ${{ inputs.LFS_REPO_PATH }} if: ${{ inputs.ENABLE_LFS == true }} diff --git a/.github/workflows/docker-step-build-and-push-image.yml b/.github/workflows/docker-step-build-and-push-image.yml index be26edcb..e1c1086e 100644 --- a/.github/workflows/docker-step-build-and-push-image.yml +++ b/.github/workflows/docker-step-build-and-push-image.yml @@ -63,7 +63,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.CHECKOUT_REF }} diff --git a/.github/workflows/docker-step-deploy.yml b/.github/workflows/docker-step-deploy.yml index 5f0ca982..e3fe6f57 100644 --- a/.github/workflows/docker-step-deploy.yml +++ b/.github/workflows/docker-step-deploy.yml @@ -47,7 +47,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to the Container registry uses: docker/login-action@v2 with: diff --git a/.github/workflows/dotnet-step-azure-webapp-build-and-deploy.yml b/.github/workflows/dotnet-step-azure-webapp-build-and-deploy.yml index 331c9557..db0e9fd1 100644 --- a/.github/workflows/dotnet-step-azure-webapp-build-and-deploy.yml +++ b/.github/workflows/dotnet-step-azure-webapp-build-and-deploy.yml @@ -64,7 +64,7 @@ jobs: env: ${{ fromJson(inputs.ENV_VARIABLES) }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.CHECKOUT_REF }} diff --git a/.github/workflows/dotnet-workflow-common.yml b/.github/workflows/dotnet-workflow-common.yml index 3c9781fc..200bff4b 100644 --- a/.github/workflows/dotnet-workflow-common.yml +++ b/.github/workflows/dotnet-workflow-common.yml @@ -46,7 +46,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check code formatting uses: zupit-it/pipeline-templates/.github/actions/dotnet/format@v1.21.3 diff --git a/.github/workflows/node-step-azure-storage-build-and-deploy.yml b/.github/workflows/node-step-azure-storage-build-and-deploy.yml index aa201494..771f1673 100644 --- a/.github/workflows/node-step-azure-storage-build-and-deploy.yml +++ b/.github/workflows/node-step-azure-storage-build-and-deploy.yml @@ -105,7 +105,7 @@ jobs: NAME_PREFIX: node-build - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.CHECKOUT_REF }} diff --git a/.github/workflows/node-step-docker-build-and-push-image.yml b/.github/workflows/node-step-docker-build-and-push-image.yml index 99ca5786..6cf009df 100644 --- a/.github/workflows/node-step-docker-build-and-push-image.yml +++ b/.github/workflows/node-step-docker-build-and-push-image.yml @@ -91,7 +91,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.CHECKOUT_REF }} @@ -130,7 +130,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.CHECKOUT_REF }} diff --git a/.github/workflows/node-step-format-lint-build.yml b/.github/workflows/node-step-format-lint-build.yml index 7d208753..3f33b810 100644 --- a/.github/workflows/node-step-format-lint-build.yml +++ b/.github/workflows/node-step-format-lint-build.yml @@ -45,7 +45,7 @@ jobs: working-directory: ${{ inputs.WORKING_DIRECTORY }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ inputs.NODE_VERSION }} uses: actions/setup-node@v3 with: diff --git a/.github/workflows/node-step-test-cypress.yml b/.github/workflows/node-step-test-cypress.yml index d1a473dd..2886ee3a 100644 --- a/.github/workflows/node-step-test-cypress.yml +++ b/.github/workflows/node-step-test-cypress.yml @@ -53,7 +53,7 @@ jobs: working-directory: ${{ inputs.WORKING_DIRECTORY }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Authenticate with private NPM package if: ${{ env.github_token }} diff --git a/.github/workflows/python-azure-function-build-and-deploy.yml b/.github/workflows/python-azure-function-build-and-deploy.yml index 01392fea..24c25ce0 100644 --- a/.github/workflows/python-azure-function-build-and-deploy.yml +++ b/.github/workflows/python-azure-function-build-and-deploy.yml @@ -43,7 +43,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python ${{ inputs.PYTHON_VERSION }} Environment uses: actions/setup-python@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d71570b7..3b653d54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.ZUPIT_BOT_TOKEN }} diff --git a/.github/workflows/sonar-step-analyze.yml b/.github/workflows/sonar-step-analyze.yml index 8dddee86..e2d22d5c 100644 --- a/.github/workflows/sonar-step-analyze.yml +++ b/.github/workflows/sonar-step-analyze.yml @@ -50,7 +50,7 @@ jobs: working-directory: ${{ inputs.WORKING_DIRECTORY }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/sonar-step-dotnet-analyze.yml b/.github/workflows/sonar-step-dotnet-analyze.yml index 84aa3aa8..16462253 100644 --- a/.github/workflows/sonar-step-dotnet-analyze.yml +++ b/.github/workflows/sonar-step-dotnet-analyze.yml @@ -55,7 +55,7 @@ jobs: working-directory: ${{ inputs.WORKING_DIRECTORY }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/sonar-step-flutter-analyze.yml b/.github/workflows/sonar-step-flutter-analyze.yml index b9e21491..f8613fa4 100644 --- a/.github/workflows/sonar-step-flutter-analyze.yml +++ b/.github/workflows/sonar-step-flutter-analyze.yml @@ -54,7 +54,7 @@ jobs: working-directory: ${{ inputs.WORKING_DIRECTORY }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download coverage artifact if: ${{ inputs.DOWNLOAD_ARTIFACT }} diff --git a/.github/workflows/springboot-step-docker-build-and-push-image.yml b/.github/workflows/springboot-step-docker-build-and-push-image.yml index 819e63fe..2dfe84ba 100644 --- a/.github/workflows/springboot-step-docker-build-and-push-image.yml +++ b/.github/workflows/springboot-step-docker-build-and-push-image.yml @@ -60,7 +60,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Extract metadata (tags, labels) for Docker id: meta diff --git a/.github/workflows/springboot-step-lint-check.yml b/.github/workflows/springboot-step-lint-check.yml index 765a947a..1fc846ba 100644 --- a/.github/workflows/springboot-step-lint-check.yml +++ b/.github/workflows/springboot-step-lint-check.yml @@ -46,7 +46,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check code is linted correctly run: ./mvnw -ntp spotless:check -Dmaven.repo.local=${{inputs.MAVEN_USER_HOME}} ${{inputs.EXTRA_MAVEN_ARGS}} - name: Check code is styled correctly diff --git a/.github/workflows/springboot-step-tests.yml b/.github/workflows/springboot-step-tests.yml index 9dd40553..408a13b6 100644 --- a/.github/workflows/springboot-step-tests.yml +++ b/.github/workflows/springboot-step-tests.yml @@ -66,7 +66,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run tests run: | ./mvnw -ntp verify -Dmaven.repo.local=${{inputs.MAVEN_USER_HOME}} ${{inputs.EXTRA_MAVEN_ARGS}} diff --git a/README.md b/README.md index 3581fa32..aeed512a 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,7 @@ This is an example to show how data should be formatted. ```yaml steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build & Push Docker id: docker