From 2c45f7d6dc31bb95d4c0a530f61789aae76cd4d9 Mon Sep 17 00:00:00 2001 From: mgoerens Date: Mon, 7 Aug 2023 14:54:10 +0200 Subject: [PATCH] Update Github actions that use deprecated Node12 Signed-off-by: mgoerens --- .github/workflows/build.yml | 8 ++++---- .github/workflows/codeql.yml | 6 +++--- .github/workflows/mercury_bot.yml | 6 +++--- .github/workflows/metrics.yml | 8 ++++---- .github/workflows/nightly_test.yml | 8 ++++---- .github/workflows/owners.yml | 2 +- .github/workflows/release.yml | 14 +++++++------- .github/workflows/test.yml | 6 +++--- .github/workflows/token.yml | 4 ++-- .github/workflows/version_check.yml | 20 ++++++++++---------- 10 files changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2128e3c..e1909521 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: github.actor != 'redhat-mercury-bot' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python 3.x Part 1 uses: actions/setup-python@v2 @@ -91,7 +91,7 @@ jobs: - name: Checkout if: ${{ steps.check_build_required.outputs.run-build == 'true' }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} @@ -304,14 +304,14 @@ jobs: - name: Approve PR id: approve_pr if: ${{ steps.check_report.conclusion == 'success' }} - uses: hmarr/auto-approve-action@v2 + uses: hmarr/auto-approve-action@v3 with: github-token: ${{ secrets.BOT_TOKEN }} - name: Merge PR id: merge_pr if: ${{ steps.approve_pr.conclusion == 'success' }} - uses: pascalgn/automerge-action@v0.13.1 + uses: pascalgn/automerge-action@v0.15.6 env: GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} MERGE_METHOD: squash diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 979bb791..49d384d4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -36,7 +36,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -71,7 +71,7 @@ jobs: - name: Send message to helm_dev slack channel id: notify_dev if: ${{ always() && github.event_name == 'schedule' && steps.codeql_analysis.conclusion != 'success'}} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C02979BDUPL @@ -84,7 +84,7 @@ jobs: - name: Send message to helm_notify slack channel id: notify if: ${{ always() && github.event_name == 'schedule' && steps.codeql_analysis.conclusion == 'success'}} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C04K1ARMH8A diff --git a/.github/workflows/mercury_bot.yml b/.github/workflows/mercury_bot.yml index 8ae1fed3..7c7b6064 100644 --- a/.github/workflows/mercury_bot.yml +++ b/.github/workflows/mercury_bot.yml @@ -11,7 +11,7 @@ jobs: if: github.event.pull_request.draft == false && github.actor == 'redhat-mercury-bot' steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python 3.x Part 1 uses: actions/setup-python@v2 @@ -84,14 +84,14 @@ jobs: - name: Approve PR id: approve_pr if: ${{ steps.check_for_owners.outputs.merge_pr == 'true' }} - uses: hmarr/auto-approve-action@v2 + uses: hmarr/auto-approve-action@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Merge PR id: merge_pr if: ${{ steps.approve_pr.conclusion == 'success' }} - uses: pascalgn/automerge-action@v0.13.1 + uses: pascalgn/automerge-action@v0.15.6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MERGE_METHOD: squash diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index 6875d17c..420688ce 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -21,10 +21,10 @@ jobs: SEGMENT_TEST_WRITE_KEY: ${{ secrets.SEGMENT_TEST_WRITE_KEY }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python 3.x Part 1 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.9" @@ -74,7 +74,7 @@ jobs: - name: Send message to helm_dev slack channel id: notify_dev if: ${{ always() && github.event_name == 'schedule' && github.repository == 'openshift-helm-charts/development' && steps.release_metrics.conclusion != 'success' }} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C02979BDUPL @@ -87,7 +87,7 @@ jobs: - name: Send message to helm_notify slack channel id: notify if: ${{ always() && github.event_name == 'schedule' && github.repository == 'openshift-helm-charts/development' && steps.release_metrics.conclusion == 'success' }} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C04K1ARMH8A diff --git a/.github/workflows/nightly_test.yml b/.github/workflows/nightly_test.yml index e22a8116..bb92b735 100644 --- a/.github/workflows/nightly_test.yml +++ b/.github/workflows/nightly_test.yml @@ -11,13 +11,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: token: ${{ secrets.BOT_TOKEN }} fetch-depth: 0 - name: Set up Python 3.x Part 1 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.9" @@ -41,7 +41,7 @@ jobs: - name: Send message to helm_dev slack channel id: notify_to_dev if: ${{ always() && steps.run_all_tests.conclusion != 'success' }} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C02979BDUPL @@ -54,7 +54,7 @@ jobs: - name: Send message to helm_notify slack channel id: notify if: ${{ always() && steps.run_all_tests.conclusion == 'success' }} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C04K1ARMH8A diff --git a/.github/workflows/owners.yml b/.github/workflows/owners.yml index e6284da9..56cd54d4 100644 --- a/.github/workflows/owners.yml +++ b/.github/workflows/owners.yml @@ -14,7 +14,7 @@ jobs: SEGMENT_TEST_WRITE_KEY: ${{ secrets.SEGMENT_TEST_WRITE_KEY }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python 3.x Part 1 uses: actions/setup-python@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de23fd8e..168df271 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,10 @@ jobs: github.event.pull_request.draft == false steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} @@ -97,7 +97,7 @@ jobs: - name: Checkout charts repo if: ${{ steps.reflect_on_pr_content.outputs.create_pull_requests == 'true' }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.base.ref }} repository: ${{ steps.check_only_version_in_PR_and_authorized.outputs.charts_repo }} @@ -106,7 +106,7 @@ jobs: - name: Checkout development repo if: ${{ steps.reflect_on_pr_content.outputs.create_pull_requests == 'true' }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.base.ref }} repository: ${{ github.event.pull_request.base.repo.full_name }} @@ -115,7 +115,7 @@ jobs: - name: Checkout stage repo if: ${{ steps.reflect_on_pr_content.outputs.create_pull_requests == 'true' }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.base.ref }} repository: ${{ steps.check_only_version_in_PR_and_authorized.outputs.stage_repo }} @@ -202,14 +202,14 @@ jobs: - name: Approve PR id: approve_pr if: ${{ steps.check_merge_and_release.outputs.merge == 'true' }} - uses: hmarr/auto-approve-action@v2 + uses: hmarr/auto-approve-action@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Merge PR id: merge_pr if: ${{ steps.check_merge_and_release.outputs.merge == 'true' }} - uses: pascalgn/automerge-action@v0.13.1 + uses: pascalgn/automerge-action@v0.15.6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MERGE_METHOD: squash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1465a27..03744250 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: github.event.pull_request.draft == false steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.sha }} @@ -137,14 +137,14 @@ jobs: - name: Approve PR id: approve_pr if: ${{ steps.check_if_release_pr.outputs.charts_release_branch == 'true' }} - uses: hmarr/auto-approve-action@v2 + uses: hmarr/auto-approve-action@v3 with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Merge PR id: merge_pr if: ${{ steps.check_if_release_pr.outputs.charts_release_branch == 'true' }} - uses: pascalgn/automerge-action@v0.13.1 + uses: pascalgn/automerge-action@v0.15.6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MERGE_METHOD: squash diff --git a/.github/workflows/token.yml b/.github/workflows/token.yml index 34a42f08..175d61ef 100644 --- a/.github/workflows/token.yml +++ b/.github/workflows/token.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python 3.x uses: actions/setup-python@v2 @@ -22,7 +22,7 @@ jobs: echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT shell: bash - - uses: actions/cache@v2 + - uses: actions/cache@v3 id: cache with: path: oc diff --git a/.github/workflows/version_check.yml b/.github/workflows/version_check.yml index 690c05fa..ee30bc59 100644 --- a/.github/workflows/version_check.yml +++ b/.github/workflows/version_check.yml @@ -80,7 +80,7 @@ jobs: - name: Checkout software-version branch if: steps.check_repo.outputs.check-version == 'true' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "software-version" repository: ${{ github.repository }} @@ -147,7 +147,7 @@ jobs: - name: Checkout main branch if: | steps.check_test.outputs.run_tests == 'true' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.BOT_TOKEN }} @@ -156,7 +156,7 @@ jobs: - name: Set up Python 3.x Part 1 if: | steps.check_test.outputs.run_tests == 'true' - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.9" @@ -215,7 +215,7 @@ jobs: - name: Send message to helm_dev slack channel id: notify_dev if: ${{ always() && github.event_name == 'schedule' && steps.check_test.outputs.run_tests == 'true' && steps.run-schedule-tests.conclusion != 'success' }} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C02979BDUPL @@ -228,7 +228,7 @@ jobs: - name: Send message to helm_notify slack channel id: notify if: ${{ always() && github.event_name == 'schedule' && steps.check_test.outputs.run_tests == 'true' && steps.run-schedule-tests.conclusion == 'success' }} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C04K1ARMH8A @@ -283,7 +283,7 @@ jobs: - name: Checkout software-version branch if: steps.check_repo.outputs.check-version == 'true' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "software-version" repository: ${{ github.repository }} @@ -352,7 +352,7 @@ jobs: - name: Checkout charts main branch if: | steps.check_test.outputs.run_tests == 'true' - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: "main" token: ${{ secrets.BOT_TOKEN }} @@ -361,7 +361,7 @@ jobs: - name: Set up Python 3.x Part 1 if: | steps.check_test.outputs.run_tests == 'true' - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: "3.9" @@ -422,7 +422,7 @@ jobs: - name: Send message to helm_dev slack channel id: notify_dev if: ${{ always() && github.event_name == 'schedule' && steps.check_test.outputs.run_tests == 'true' && steps.run-schedule-tests.conclusion != 'success' }} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C02979BDUPL @@ -435,7 +435,7 @@ jobs: - name: Send message to helm_notify slack channel id: notify if: ${{ always() && github.event_name == 'schedule' && steps.check_test.outputs.run_tests == 'true' && steps.run-schedule-tests.conclusion == 'success' }} - uses: archive/github-actions-slack@v2.0.0 + uses: archive/github-actions-slack@v2.7.0 with: slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} slack-channel: C04K1ARMH8A