Skip to content

Commit

Permalink
ci: fix build deadlock after ci finishes (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyshx committed Jun 7, 2023
1 parent 20635bf commit 0db4f9f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,22 @@ jobs:
steps:
- run: echo OK
build-web:
needs: ci
needs:
- ci
- ci-web
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'release' || startsWith(github.ref_name, 'release/'))
if: ${{!failure() && github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'release' || startsWith(github.ref_name, 'release/'))}}
steps:
- name: Dispatch Web Build
uses: peter-evans/repository-dispatch@v2
with:
event-type: build-web
build-server:
needs: ci
needs:
- ci
- ci-server
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'release' || startsWith(github.ref_name, 'release/'))
if: ${{!failure() && github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'release' || startsWith(github.ref_name, 'release/'))}}
steps:
- name: Dispatch Web Build
uses: peter-evans/repository-dispatch@v2
Expand Down

0 comments on commit 0db4f9f

Please sign in to comment.