diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 862b9d97..4a5dccf0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,9 @@ on: release: types: [ published ] +concurrency: + group: ${{ github.ref }}-actions + jobs: build: # Only run on PRs if the source branch is on someone else's repo diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index ce5a88b7..2df0c801 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -1,16 +1,18 @@ name: Smoke test on: - workflow_run: - workflows: ["Build"] # This should match the exact name in build.yml - types: - - completed + push: + branches: [ "**" ] + tags: [ "v**" ] + pull_request: + release: + types: [ published ] concurrency: - group: smoke-test-${{ github.event.workflow_run.id }} + group: ${{ github.ref }}-actions jobs: check: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ (github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name) && (github.event.name != 'push' || !startsWith(github.ref, 'refs/tags/') || contains(github.ref, '-beta.')) }} runs-on: ubuntu-latest services: postgres: