From 9d970fd387883e675fcb4e6c483612e6637977dc Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Tue, 25 Aug 2026 20:39:02 +0100 Subject: [PATCH] ci: accept main as well as master in workflow triggers Prepares this repo for the default branch rename to main. Both names are accepted for the duration of the migration so no workflow misses a run. --- .github/workflows/codeql.yml | 4 ++-- .github/workflows/release.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e07b52a..0791f61 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ "master" ] + branches: ["master", "main"] pull_request: # The branches below must be a subset of the branches above - branches: [ "master" ] + branches: ["master", "main"] schedule: - cron: '24 6 * * 6' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 483dfdd..314e9ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - main jobs: changesets: