From 4a68ec421d0ef19763eac80981cb29f9276505f6 Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Wed, 17 Apr 2024 16:44:27 +0700 Subject: [PATCH] Rework Automerge workflow Signed-off-by: NikitaSkrynnik --- .github/workflows/automerge.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml index 8a545393..0313b240 100644 --- a/.github/workflows/automerge.yaml +++ b/.github/workflows/automerge.yaml @@ -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