From e97f338267f518fa5f596deeb3214aa041261091 Mon Sep 17 00:00:00 2001 From: Xon <635541+Xon@users.noreply.github.com> Date: Fri, 30 Aug 2024 04:42:06 +0800 Subject: [PATCH] Adjust github actions to work on main branch instead of master branch --- .github/workflows/browsers.yml | 2 +- .github/workflows/bundlesize.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/release-drafter.yml | 3 +-- .github/workflows/unit-tests.yml | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/browsers.yml b/.github/workflows/browsers.yml index f64d81281..88b84da1e 100644 --- a/.github/workflows/browsers.yml +++ b/.github/workflows/browsers.yml @@ -1,7 +1,7 @@ name: End-to-end tests (playwright) on: push: - branches: [ main, master ] + branches: [ main ] paths: - 'src/**' - 'test-e2e/**' diff --git a/.github/workflows/bundlesize.yml b/.github/workflows/bundlesize.yml index 25cf415be..08567b40d 100644 --- a/.github/workflows/bundlesize.yml +++ b/.github/workflows/bundlesize.yml @@ -2,7 +2,7 @@ name: Bundle size checks on: push: - branches: [ main, master ] + branches: [ main ] paths: - '.github/workflows/bundlesize.yml' - 'src/scripts/**' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index efd368801..7033ba972 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,7 +2,7 @@ name: Code linting on: push: - branches: [ main, master ] + branches: [ main ] paths: - '.github/workflows/lint.yml' - 'src/scripts/**' diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 8e5d4bdbc..6491a4912 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -2,8 +2,7 @@ name: Release drafter on: push: - branches: - - master + branches: [ main ] jobs: update-draft-release: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 64ea6e44e..8f43ca9e7 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -2,7 +2,7 @@ name: Unit tests on: push: - branches: [ main, master ] + branches: [ main ] paths: - '.github/workflows/unit-tests.yml' - 'src/scripts/**'