Skip to content

Commit

Permalink
fix docs workflow action for fork PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp committed Jun 30, 2023
1 parent 596fd84 commit 1fd6b6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@
name: "Documentation"

on:
pull_request:
pull_request_target:
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.x"
paths:
- 'doc/**'
- '.github/workflows/docs.yaml'
- 'README.md'
push:
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.x"
- "*_actions"
paths:
- 'doc/**'
- '.github/workflows/docs.yaml'
- 'README.md'

permissions:
contents: read
Expand All @@ -27,6 +30,8 @@ jobs:
steps:
- name: "Checkout code"
uses: "actions/checkout@v3"
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: "Checkout Docs Generator"
uses: "actions/checkout@v3"
Expand Down

0 comments on commit 1fd6b6a

Please sign in to comment.