diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index a7137f9696e2..d95bc640b847 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -13,6 +13,14 @@ on: - 'art/**' - 'docs/**' - '*.md' + push: + branches: [main] + paths-ignore: + - '.github/**' + - '__tests__/**' + - 'art/**' + - 'docs/**' + - '*.md' permissions: {} @@ -22,7 +30,7 @@ concurrency: jobs: release: - if: ${{ !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') && !contains(github.event.pull_request.labels.*.name, 'spam') && !contains(github.event.pull_request.labels.*.name, 'invalid') }} + if: ${{ ((github.event_name == 'pull_request' && !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') && !contains(github.event.pull_request.labels.*.name, 'spam') && !contains(github.event.pull_request.labels.*.name, 'invalid')) || (github.event_name == 'push')) && github.repository == 'vuejs/vitepress' }} runs-on: ubuntu-latest steps: