Skip to content

Commit

Permalink
Add merge_group event trigger to GHA daily workflow (#1996)
Browse files Browse the repository at this point in the history
* * Run workflow on merge_group event
* Run workflow on pushes to main and release branches
* Run workflow at 2:30am every day on dev
* Run workflow manually
* Removed run on push to dev

* Run code quality checks on merge_group trigger
  • Loading branch information
bandish-shah authored Feb 24, 2023
1 parent 33a28b5 commit f4c7abd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Code Quality Checks
on:
merge_group:
push:
branches:
- dev
- main
- release/**
pull_request:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Daily
on:
schedule:
- cron: '30 2 * * *' # 2:30 every day
merge_group:
push:
branches:
- dev
- main
- release/**
schedule:
- cron: '30 2 * * *' # 2:30 every day
workflow_dispatch:
# Cancel old runs when a new commit is pushed to the same branch if not on main or dev
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
daily-pytest-cpu:
uses: ./.github/workflows/pytest-cpu.yaml
Expand Down

0 comments on commit f4c7abd

Please sign in to comment.