Update CI scripts
This commit is contained in:
11
.github/workflows/ci-docs.yaml
vendored
11
.github/workflows/ci-docs.yaml
vendored
@ -3,19 +3,12 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
jobs:
|
||||
docs-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
if: github.event_name == 'push'
|
||||
with:
|
||||
ref: ${{ github.head_ref || github.ref_name }}
|
||||
- uses: actions/checkout@v3
|
||||
if: github.event_name == 'pull_request_target'
|
||||
with:
|
||||
ref: "refs/pull/${{ github.event.number }}/merge"
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user