docs: push&merge workflow

This commit is contained in:
LouisShark 2023-12-10 22:31:00 +08:00
parent 1f33ad938c
commit 85aeca36c0

View file

@ -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