From b641fc064a641ffc0ad95d8c4c17fd339941941f Mon Sep 17 00:00:00 2001 From: splincode Date: Thu, 5 Oct 2023 11:34:11 +0300 Subject: [PATCH] ci: approve on success --- .github/workflows/auto-wait-successful.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-wait-successful.yml b/.github/workflows/auto-wait-successful.yml index 288f59e0c..653fb5d6d 100644 --- a/.github/workflows/auto-wait-successful.yml +++ b/.github/workflows/auto-wait-successful.yml @@ -9,9 +9,10 @@ on: jobs: on-success: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref != 'refs/heads/main' }} steps: - run: echo 'The triggering workflow passed' + - run: echo '${{ github.event.workflow_run.conclusion }}' + - run: echo '${{ github.ref }}' - uses: taiga-family/ci/actions/setup/checkout@v1.23.0 - uses: taiga-family/ci/actions/setup/variables@v1.23.0 - uses: taiga-family/ci/actions/auto/approve/double@v1.23.0 @@ -34,5 +35,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: '⛔ Some jobs have fallen, we can’t set auto approve!' + body: '⛔ Some workflows failed, we can’t use auto approve for here!' })