diff --git a/.github/workflows/publish-nt-css.yml b/.github/workflows/publish-nt-css.yml index 08c3b45..6a239db 100644 --- a/.github/workflows/publish-nt-css.yml +++ b/.github/workflows/publish-nt-css.yml @@ -8,9 +8,10 @@ on: jobs: build-and-publish: if: > - github.event.pull_request.merged == true && + (github.event_name == 'workflow_dispatch' || + (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' && - contains(github.event.pull_request.head.ref, 'bump-nt-stylesheet') + contains(github.event.pull_request.head.ref, 'bump-nt-stylesheet'))) runs-on: ubuntu-latest steps: