Skip to content

Commit

Permalink
Check and resolve conflicts on PR creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Byrgazov committed May 27, 2024
1 parent 02ea107 commit 7ffdba8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pr-for-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,18 @@ jobs:
uses: networkservicemesh/.github/.github/workflows/pr-for-updates.yaml@main
secrets:
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}

check-mergeability:
needs: [ auto-pull-request ]
uses: networkservicemesh/.github/.github/workflows/check-mergeability.yaml@main
secrets:
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}

resolve_conflicts:
needs: [ check-mergeability ]
if: ${{ always() && needs.check-mergeability.result == 'failure' && needs.check-mergeability.outputs.pr_branch_ref != '' }}
uses: networkservicemesh/.github/.github/workflows/resolve-conflicts.yaml@main
with:
pr_branch_ref: ${{ needs.check-mergeability.outputs.pr_branch_ref }}
secrets:
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}

0 comments on commit 7ffdba8

Please sign in to comment.