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 37ffd17 commit 110a933
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 40 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,46 @@ jobs:
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- name: Wait for build to succeed
uses: fountainhead/[email protected]
id: wait1
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: build
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Wait for build to succeed
if: steps.wait1.outputs.conclusion == 'success'
uses: fountainhead/[email protected]
id: wait2
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: build-demo
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Wait for build to succeed
if: steps.wait2.outputs.conclusion == 'success'
uses: fountainhead/[email protected]
id: wait3
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: lint
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Wait for build to succeed
if: steps.wait3.outputs.conclusion == 'success'
uses: fountainhead/[email protected]
id: wait-for-build
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: tests
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Do something with a passing build
if: steps.wait-for-build.outputs.conclusion == 'success'
run: echo 'success'

- name: Do something with a failing build
if: steps.wait-for-build.outputs.conclusion == 'failure'
run: echo 'failure'

- uses: taiga-family/ci/actions/auto/approve/[email protected]
if: env.TAIGA_FAMILY_BOT_IS_AUTHOR == 'true'
with:
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/auto-wait-successful.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
build:
build-demo:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
Expand Down

0 comments on commit 110a933

Please sign in to comment.