Skip to content

Commit

Permalink
Merge pull request #1005 from NikitaSkrynnik/automerge
Browse files Browse the repository at this point in the history
Rework Automerge workflow
  • Loading branch information
denis-tingaikin committed Apr 23, 2024
2 parents 0c0222a + 098c2b2 commit c406bbb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,8 @@ on:
workflows:
- 'ci'
jobs:
automerge-on-success:
automerge:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' }}
uses: networkservicemesh/.github/.github/workflows/automerge.yaml@main
secrets:
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}

automerge-otherwise:
name: Automerge
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion != 'success' && github.actor == 'nsmbot' }}
steps:
- name: Set status 'failure'
run: |
echo Set status 'failure' for 'automerge' workflow to prevent run "update dependent repositories" or any other dependent workflows'
exit -1

0 comments on commit c406bbb

Please sign in to comment.