docs: push&merge workflow
This commit is contained in:
2
.github/workflows/build-toc.yaml
vendored
2
.github/workflows/build-toc.yaml
vendored
@@ -12,7 +12,7 @@ on:
|
||||
jobs:
|
||||
run-script:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.merged == true
|
||||
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event.pull_request.merged == true && github.base_ref == 'main')
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
Reference in New Issue
Block a user