From b382a1522908bf8205a6a47816118ed3b3c0e930 Mon Sep 17 00:00:00 2001 From: Vincent Massaro Date: Tue, 3 Dec 2024 14:23:15 -0500 Subject: [PATCH] fix: only run release_pr.yml workflow against release branch pattern The release_pr.yml workflow is triggered manually using workflow_dispatch, and on pull request synchronize/closed activities. It is running unexpectedly against other pull requests to master, like hotfixes. Since it currently does not need to run automatically against pull requests to master since we create release PRs using workflow_dispatch, this change sets it to only run on pull requests matching the release branch naming pattern. --- .github/workflows/release_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release_pr.yml b/.github/workflows/release_pr.yml index 26758f465e..0272d91bc7 100644 --- a/.github/workflows/release_pr.yml +++ b/.github/workflows/release_pr.yml @@ -5,7 +5,7 @@ on: - synchronize - closed branches: - - master + - v[0-9]+ workflow_dispatch: env: YALESITES_BUILD_TOKEN: ${{ secrets.YALESITES_BUILD_TOKEN }}