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