From 470a624d6c982787f8a9c93db1ffce0ac1ab2951 Mon Sep 17 00:00:00 2001 From: Leo Ribeiro Date: Thu, 21 Nov 2024 17:51:43 -0500 Subject: [PATCH] ci: Add CI to main pushes (#307) --- .github/workflows/ci.yaml | 7 ++++++- .github/workflows/license-check.yml | 12 ++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dbe5ab6ddd..5d0e0aba3c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,12 @@ name: CI on: pull_request: - branches: [main] + branches: + - main # Trigger CI on PRs to main + + push: + branches: + - main # Trigger CI on pushes to main jobs: exchange: diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index 96946c090b..fb1429e92e 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -1,13 +1,21 @@ --- name: License Check -"on": - pull_request: +on: + pull_request: # Trigger license check on any PRs paths: - '**/pyproject.toml' - '.github/workflows/license-check.yml' - '.github/workflows/scripts/check_licenses.py' + push: # Trigger license check on pushes to main + branches: + - main + paths: # TODO: can't DRY unless https://github.com/actions/runner/issues/1182 + - '**/pyproject.toml' + - '.github/workflows/license-check.yml' + - '.github/workflows/scripts/check_licenses.py' + jobs: check-licenses: name: Check Package Licenses