From 8bccd48aad48bdde38b14a8a707136f65b17b957 Mon Sep 17 00:00:00 2001 From: Jake Callahan Date: Thu, 30 May 2024 02:41:10 -0400 Subject: [PATCH] [6.15.z] - Handle failed workflow cherry-picks (#1185) There were a few failed cherry-picks that this commit resolves in one go. Specific issues will be tagged and aligned in GitHub. --- .github/workflows/auto_cherry_pick.yml | 6 +++--- .github/workflows/automerge.yaml | 6 +++--- .github/workflows/merge_to_master.yml | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/auto_cherry_pick.yml b/.github/workflows/auto_cherry_pick.yml index c947283b..c95b7637 100644 --- a/.github/workflows/auto_cherry_pick.yml +++ b/.github/workflows/auto_cherry_pick.yml @@ -22,7 +22,7 @@ jobs: prt_comment: ${{steps.fc.outputs.comment-body}} steps: - name: Find Comment - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 id: fc with: issue-number: ${{ env.number }} @@ -45,7 +45,7 @@ jobs: with: swap-size-gb: 10 ## Nailgun Repo Checkout - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: ${{ startsWith(matrix.label, '6.') && matrix.label != github.base_ref }} with: fetch-depth: 0 @@ -75,7 +75,7 @@ jobs: - name: is autoMerging enabled for Auto CherryPicked PRs ? if: ${{ always() && steps.cherrypick.outcome == 'success' && contains(github.event.pull_request.labels.*.name, 'AutoMerge_Cherry_Picked') }} - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: github-token: ${{ secrets.CHERRYPICK_PAT }} script: | diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml index c3863d47..1084678c 100644 --- a/.github/workflows/automerge.yaml +++ b/.github/workflows/automerge.yaml @@ -28,7 +28,7 @@ jobs: steps: - id: find-prt-comment name: Find the prt comment - uses: peter-evans/find-comment@v2 + uses: peter-evans/find-comment@v3 with: issue-number: ${{ github.event.number }} body-includes: "trigger: test-robottelo" @@ -45,7 +45,7 @@ jobs: - name: Wait for other status checks to Pass id: waitforstatuschecks - uses: lewagon/wait-on-check-action@v1.3.3 + uses: lewagon/wait-on-check-action@v1.3.4 with: ref: ${{ github.head_ref }} repo-token: ${{ secrets.CHERRYPICK_PAT }} @@ -103,7 +103,7 @@ jobs: - id: automerge name: Auto merge of cherry-picked PRs. - uses: "pascalgn/automerge-action@v0.15.5" + uses: pascalgn/automerge-action@v0.16.3 if: steps.waitforstatuschecks.outputs.status == 'success' env: GITHUB_TOKEN: "${{ secrets.CHERRYPICK_PAT }}" diff --git a/.github/workflows/merge_to_master.yml b/.github/workflows/merge_to_master.yml index 6c7f1d62..975baaed 100644 --- a/.github/workflows/merge_to_master.yml +++ b/.github/workflows/merge_to_master.yml @@ -18,12 +18,12 @@ jobs: python-version: ['3.10', '3.11'] steps: - name: Checkout Nailgun - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: Set Up Python-${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -40,7 +40,7 @@ jobs: pip install -U -r requirements.txt -r requirements-dev.txt --no-cache-dir - name: Pre Commit Checks - uses: pre-commit/action@v2.0.0 + uses: pre-commit/action@v3.0.1 - name: Make Docs run: | @@ -62,7 +62,7 @@ jobs: steps: - uses: actions/checkout@master - name: Setup python 3.10 - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install pypa/build