diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a102a8e..b5a15ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,17 +2,18 @@ name: Build on: workflow_run: - workflows: ["Test"] + workflows: ["Build"] branches: ["main"] types: - completed - + concurrency: group: build-${{ github.ref }} cancel-in-progress: true jobs: test-build: + if: github.event.workflow_run.conclusion == 'success' strategy: fail-fast: true matrix: diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index 5a68cba..20c6d48 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -1,5 +1,4 @@ name: Semantic Release - on: workflow_run: workflows: ["Build"] @@ -12,6 +11,7 @@ permissions: jobs: release: + if: github.event.workflow_run.conclusion == 'success' name: Release runs-on: ubuntu-latest permissions: