Skip to content

Commit

Permalink
Update Github actions that use deprecated Node12
Browse files Browse the repository at this point in the history
Signed-off-by: mgoerens <mgoerens@redhat.com>
  • Loading branch information
mgoerens committed Aug 8, 2023
1 parent 671f21d commit 2c45f7d
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mercury_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nightly_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/owners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/token.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/version_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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"

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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"

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2c45f7d

Please sign in to comment.