Skip to content

Commit

Permalink
ci: switch to using workflow call to depend on workflows correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Enduriel committed Jul 8, 2024
1 parent acb403e commit 70af1a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- '**'
pull_request:
workflow_call:

jobs:
build:
Expand Down
20 changes: 3 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,12 @@ on:
- '*'

jobs:
await-build:
runs-on: ubuntu-latest
outputs:
conclusion: ${{ steps.wait-for-cb.outputs.conclusion }}
steps:
- name: Wait for Continuous Build
id: wait-for-cb
uses: fountainhead/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
timeoutSeconds: 3600
intervalSeconds: 60
checkName: build
ref: ${{ github.sha }}
build:
uses: ./.github/workflows/ci.yml

release:
needs: await-build
if: needs.await-build.outputs.conclusion == 'success'
runs-on: windows-latest

needs: build
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 70af1a9

Please sign in to comment.