Skip to content

Commit

Permalink
additional check before create issue for failed cherrypick
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarkhatavkar committed Jan 22, 2024
1 parent 6814e41 commit 33caced
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 50 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/auto_cherry_pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,16 @@ jobs:
labels: ["AutoMerge_Cherry_Picked"]
})
- name: Check if cherrypick pr is created
uses: juliangruber/find-pull-request-action@v1
id: fpr
with:
branch: ${{ matrix.label }}

## Failure Logging to issues and GChat Group
- name: Create Github issue on cherrypick failure
id: create-issue
if: ${{ always() && steps.cherrypick.outcome != 'success' && startsWith(matrix.label, '6.') && matrix.label != github.base_ref }}
if: ${{ always() && steps.fpr.outputs.number != '' && steps.cherrypick.outcome != 'success' && startsWith(matrix.label, '6.') && matrix.label != github.base_ref }}
uses: dacbd/create-issue-action@main
with:
token: ${{ secrets.CHERRYPICK_PAT }}
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/test.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/test2.yml

This file was deleted.

0 comments on commit 33caced

Please sign in to comment.