diff --git a/.github/workflows/apple.yml b/.github/workflows/apple.yml index dd616f61..f3ceb232 100644 --- a/.github/workflows/apple.yml +++ b/.github/workflows/apple.yml @@ -2,12 +2,12 @@ name: MacOS Python build on: push: + branches: [main] pull_request: - schedule: - - cron: "13 11 * * *" + workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true jobs: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8883b2ab..f1d834bb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -2,12 +2,12 @@ name: Windows Python build on: push: + branches: [main] pull_request: - schedule: - - cron: "13 11 * * *" + workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} cancel-in-progress: true jobs: