Skip to content

Commit

Permalink
ci: approve on success
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 5, 2023
1 parent 490b40f commit b641fc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto-wait-successful.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/auto/approve/[email protected]
Expand All @@ -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!'
})

0 comments on commit b641fc0

Please sign in to comment.