From 3a2d893125da056a0adb4a1fcf58b4577164926e Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Wed, 23 Oct 2024 19:50:51 -0500 Subject: [PATCH] ci(config): update composite.release for pull requests (#68) --- .github/workflows/composite.release.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/composite.release.yml b/.github/workflows/composite.release.yml index 3fec2ed..e3f138e 100644 --- a/.github/workflows/composite.release.yml +++ b/.github/workflows/composite.release.yml @@ -12,12 +12,25 @@ jobs: release: runs-on: ubuntu-latest if: | - github.event_name == 'push' && ( - github.ref == 'refs/heads/alpha' || - github.ref == 'refs/heads/beta' || - github.ref == 'refs/heads/canary' || - github.ref == 'refs/heads/main' || - github.ref == 'refs/heads/pre/rc' + ( + github.event_name == 'push' && + ( + github.ref == 'refs/heads/main' || + github.ref == 'refs/heads/alpha' || + github.ref == 'refs/heads/beta' || + github.ref == 'refs/heads/canary' || + github.ref == 'refs/heads/pre/rc' + ) + ) || + ( + github.event_name == 'pull_request' && + ( + github.base_ref == 'main' || + github.base_ref == 'alpha' || + github.base_ref == 'beta' || + github.base_ref == 'canary' || + github.base_ref == 'pre/rc' + ) ) steps: - name: Checkout