Skip to content

Commit

Permalink
docs: push&merge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisShark committed Dec 10, 2023
1 parent 1f33ad9 commit 85aeca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-toc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85aeca3

Please sign in to comment.