From 60a61b8241ecdc95cbdcc37a9b8c0196312da420 Mon Sep 17 00:00:00 2001 From: jkneubuh <86427252+jkneubuh@users.noreply.github.com> Date: Fri, 11 Nov 2022 10:16:58 -0500 Subject: [PATCH] Only run GHA on PRs targeting the mainline (#860) Signed-off-by: Josh Kneubuhl Signed-off-by: Josh Kneubuhl --- .github/workflows/enable-gha.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/enable-gha.yaml b/.github/workflows/enable-gha.yaml index 7ab63fed..bea0d052 100644 --- a/.github/workflows/enable-gha.yaml +++ b/.github/workflows/enable-gha.yaml @@ -1,11 +1,9 @@ name: Enable GitHub Actions -run-name: ${{ github.actor }} is activating GitHub Actions on the main branch 🚀 +run-name: ${{ github.actor }} is activating GitHub Actions on a PR to the main branch 🚀 on: - push: - branches: ["**"] pull_request: - branches: ["**"] + branches: ["main"] workflow_dispatch: jobs: