From 8131acd9331636e60b4888e87b7c1eae55875355 Mon Sep 17 00:00:00 2001 From: James Netherton Date: Fri, 29 Sep 2023 14:59:38 +0100 Subject: [PATCH] Upgrade github actions to latest versions --- .github/workflows/camel-master-cron.yaml | 42 +++++++++---------- .github/workflows/ci-build.yaml | 42 +++++++++---------- .github/workflows/generate-jvm-extension.yaml | 4 +- .github/workflows/generate-sbom-main.yml | 2 +- .github/workflows/label-issue.yaml | 2 +- .github/workflows/pr-validate.yml | 2 +- .github/workflows/quarkus-master-cron.yaml | 42 +++++++++---------- .../synchronize-dependabot-branch.yaml | 2 +- 8 files changed, 69 insertions(+), 69 deletions(-) diff --git a/.github/workflows/camel-master-cron.yaml b/.github/workflows/camel-master-cron.yaml index fc98ae59735d..654fb422f56b 100644 --- a/.github/workflows/camel-master-cron.yaml +++ b/.github/workflows/camel-master-cron.yaml @@ -42,7 +42,7 @@ jobs: run: | df -h / - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -51,7 +51,7 @@ jobs: [ ! -d ~/build-data ] && mkdir -p ~/build-data echo "${{ github.run_id }}-${{ github.run_number }}-$(uuidgen)" > ~/build-data/build-id.txt - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: camel-main fetch-depth: 0 @@ -86,7 +86,7 @@ jobs: ls -lh ${{ runner.temp }}/maven-repo.tgz df -h / - name: Persist Maven Repo - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: maven-repo path: ${{ runner.temp }}/maven-repo.tgz @@ -128,7 +128,7 @@ jobs: rm -rf /usr/share/swift df -h / - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -139,7 +139,7 @@ jobs: tar -xzf ../maven-repo.tgz -C ~ df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: camel-main fetch-depth: 0 @@ -150,7 +150,7 @@ jobs: git fetch origin main git rebase $(cat ~/build-data/main-sha.txt) - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -206,7 +206,7 @@ jobs: MAVEN_OPTS: -Xmx3000m steps: - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -217,7 +217,7 @@ jobs: tar -xzf ../maven-repo.tgz -C ~ df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: camel-main fetch-depth: 0 @@ -228,7 +228,7 @@ jobs: git fetch origin main git rebase $(cat ~/build-data/main-sha.txt) - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -278,7 +278,7 @@ jobs: MAVEN_OPTS: -Xmx3000m steps: - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -296,7 +296,7 @@ jobs: echo "${HOSTS_LINE}" | sudo tee -a /etc/hosts cat /etc/hosts - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: camel-main fetch-depth: 0 @@ -307,7 +307,7 @@ jobs: git fetch origin main git rebase $(cat ~/build-data/main-sha.txt) - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: ${{ matrix.java }} @@ -334,7 +334,7 @@ jobs: MAVEN_OPTS: -Xmx3000m steps: - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -343,7 +343,7 @@ jobs: run: | tar -xzf ../maven-repo.tgz -C ~ - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: camel-main fetch-depth: 0 @@ -354,7 +354,7 @@ jobs: git fetch origin main git rebase $(cat ~/build-data/main-sha.txt) - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -377,12 +377,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -393,7 +393,7 @@ jobs: tar -xzf ../maven-repo.tgz -C ~ df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: camel-main fetch-depth: 0 @@ -428,12 +428,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -444,7 +444,7 @@ jobs: tar -xzf ../maven-repo.tgz -C ~ df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: camel-main fetch-depth: 0 diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index f63f97f8fafa..318c39946639 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -76,13 +76,13 @@ jobs: echo "run-checks=false" >> $GITHUB_OUTPUT fi - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 if: steps.init.outputs.run-checks == 'true' with: distribution: 'temurin' java-version: '17' - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 if: steps.init.outputs.run-checks == 'true' with: ref: ${{ env.CHECKOUT_REF }} @@ -110,7 +110,7 @@ jobs: echo "continue-build=true" >> $GITHUB_OUTPUT fi - name: Upload dependabot changeset - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 if: steps.pre-build-checks.outputs.continue-build == 'false' with: name: dependabot-pr-changeset @@ -134,7 +134,7 @@ jobs: run: | echo "BRANCH_OPTIONS=-Poss-snapshots -Dquarkus.version=999-SNAPSHOT" >> $GITHUB_ENV - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -154,7 +154,7 @@ jobs: && echo "Current Quarkus commit:" $(git rev-parse HEAD) \ && ./mvnw ${CQ_MAVEN_ARGS} clean install -Dquickly - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ env.CHECKOUT_REF }} fetch-depth: 0 @@ -175,7 +175,7 @@ jobs: ls -lh ${{ runner.temp }}/maven-repo.tgz df -h / - name: Persist Maven Repo - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: maven-repo path: ${{ runner.temp }}/maven-repo.tgz @@ -213,17 +213,17 @@ jobs: rm -rf /usr/share/swift df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ env.CHECKOUT_REF }} fetch-depth: 0 - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -286,17 +286,17 @@ jobs: run: | echo "BRANCH_OPTIONS=-Poss-snapshots -Dquarkus.version=999-SNAPSHOT" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ env.CHECKOUT_REF }} fetch-depth: 0 - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -352,17 +352,17 @@ jobs: run: | echo "BRANCH_OPTIONS=-Poss-snapshots -Dquarkus.version=999-SNAPSHOT" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ env.CHECKOUT_REF }} fetch-depth: 0 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: ${{ matrix.java }} - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -404,17 +404,17 @@ jobs: run: | echo "BRANCH_OPTIONS=-Poss-snapshots -Dquarkus.version=999-SNAPSHOT" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ env.CHECKOUT_REF }} fetch-depth: 0 - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -441,14 +441,14 @@ jobs: run: | echo "BRANCH_OPTIONS=-Poss-snapshots -Dquarkus.version=999-SNAPSHOT" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. diff --git a/.github/workflows/generate-jvm-extension.yaml b/.github/workflows/generate-jvm-extension.yaml index ff7d4e1bbe25..d4d3813a7348 100644 --- a/.github/workflows/generate-jvm-extension.yaml +++ b/.github/workflows/generate-jvm-extension.yaml @@ -30,9 +30,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' diff --git a/.github/workflows/generate-sbom-main.yml b/.github/workflows/generate-sbom-main.yml index 649fef15b3a5..bea4ea2968bd 100644 --- a/.github/workflows/generate-sbom-main.yml +++ b/.github/workflows/generate-sbom-main.yml @@ -41,7 +41,7 @@ jobs: matrix: java: [ '17' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: false - name: Set up JDK ${{ matrix.java }} diff --git a/.github/workflows/label-issue.yaml b/.github/workflows/label-issue.yaml index 396f48198f4f..70ce89772af9 100644 --- a/.github/workflows/label-issue.yaml +++ b/.github/workflows/label-issue.yaml @@ -41,7 +41,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main - name: Install js-yaml package diff --git a/.github/workflows/pr-validate.yml b/.github/workflows/pr-validate.yml index 5a38be0ffa67..a41e75d7e441 100644 --- a/.github/workflows/pr-validate.yml +++ b/.github/workflows/pr-validate.yml @@ -55,7 +55,7 @@ jobs: echo "BRANCH_OPTIONS=-Poss-snapshots" >> $GITHUB_ENV - uses: actions/checkout@v1 - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' diff --git a/.github/workflows/quarkus-master-cron.yaml b/.github/workflows/quarkus-master-cron.yaml index c9e43f2b560a..cce88db8b661 100644 --- a/.github/workflows/quarkus-master-cron.yaml +++ b/.github/workflows/quarkus-master-cron.yaml @@ -42,7 +42,7 @@ jobs: run: | df -h / - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -51,7 +51,7 @@ jobs: [ ! -d ~/build-data ] && mkdir -p ~/build-data echo "${{ github.run_id }}-${{ github.run_number }}-$(uuidgen)" > ~/build-data/build-id.txt - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: quarkus-main fetch-depth: 0 @@ -86,7 +86,7 @@ jobs: ls -lh ${{ runner.temp }}/maven-repo.tgz df -h / - name: Persist Maven Repo - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: maven-repo path: ${{ runner.temp }}/maven-repo.tgz @@ -128,7 +128,7 @@ jobs: rm -rf /usr/share/swift df -h / - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -139,7 +139,7 @@ jobs: tar -xzf ../maven-repo.tgz -C ~ df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: quarkus-main fetch-depth: 0 @@ -150,7 +150,7 @@ jobs: git fetch origin main git rebase $(cat ~/build-data/main-sha.txt) - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -206,7 +206,7 @@ jobs: MAVEN_OPTS: -Xmx3000m steps: - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -217,7 +217,7 @@ jobs: tar -xzf ../maven-repo.tgz -C ~ df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: quarkus-main fetch-depth: 0 @@ -228,7 +228,7 @@ jobs: git fetch origin main git rebase $(cat ~/build-data/main-sha.txt) - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -278,7 +278,7 @@ jobs: MAVEN_OPTS: -Xmx3000m steps: - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -296,7 +296,7 @@ jobs: echo "${HOSTS_LINE}" | sudo tee -a /etc/hosts cat /etc/hosts - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: quarkus-main fetch-depth: 0 @@ -307,7 +307,7 @@ jobs: git fetch origin main git rebase $(cat ~/build-data/main-sha.txt) - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: ${{ matrix.java }} @@ -334,7 +334,7 @@ jobs: MAVEN_OPTS: -Xmx3000m steps: - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -343,7 +343,7 @@ jobs: run: | tar -xzf ../maven-repo.tgz -C ~ - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: quarkus-main fetch-depth: 0 @@ -354,7 +354,7 @@ jobs: git fetch origin main git rebase $(cat ~/build-data/main-sha.txt) - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' @@ -377,12 +377,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -393,7 +393,7 @@ jobs: tar -xzf ../maven-repo.tgz -C ~ df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: quarkus-main fetch-depth: 0 @@ -428,12 +428,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: distribution: 'temurin' java-version: '17' - name: Download Maven Repo - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: maven-repo path: .. @@ -444,7 +444,7 @@ jobs: tar -xzf ../maven-repo.tgz -C ~ df -h / - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: quarkus-main fetch-depth: 0 diff --git a/.github/workflows/synchronize-dependabot-branch.yaml b/.github/workflows/synchronize-dependabot-branch.yaml index 684b8c2d6ca4..15461d8259e8 100644 --- a/.github/workflows/synchronize-dependabot-branch.yaml +++ b/.github/workflows/synchronize-dependabot-branch.yaml @@ -74,7 +74,7 @@ jobs: echo "pr-number=$(cat /home/runner/work/dependabot-pr/PR_NUMBER)" >> $GITHUB_OUTPUT fi - name: Checkout dependabot branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 if: steps.setup-dependabot-patches.outputs.branch-ref != '' with: ref: ${{ steps.setup-dependabot-patches.outputs.branch-ref }}