Skip to content

Commit

Permalink
Rework Automerge workflow
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <[email protected]>
  • Loading branch information
NikitaSkrynnik committed Apr 17, 2024
1 parent 4a11ae6 commit 4a68ec4
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 4a68ec4

Please sign in to comment.