Skip to content

Commit

Permalink
addtional 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 b17523e
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit b17523e

Please sign in to comment.