Replace pull_request event from docs workflow (#15530)

Revert "Replace pull_request_target event from docs workflow (#15526)"

This reverts commit 4750e221d1.

Co-authored-by: Luca Antiga <luca.antiga@gmail.com>
This commit is contained in:
Jirka Borovec 2022-11-04 16:36:47 +01:00 committed by GitHub
parent 501d40f0dd
commit 1129b2b66d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -4,7 +4,9 @@ name: Check Docs
on:
push:
branches: ["master", "release/*"]
pull_request:
# use this event type to share secrets with forks.
# it's important that the PR head SHA is checked out to run the changes
pull_request_target:
branches: ["master", "release/*"]
paths:
- ".actions/**"
@ -30,6 +32,8 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@v4
with:
python-version: "3.8"
@ -56,6 +60,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/download-artifact@v3
with:
name: ci-packages-${{ github.sha }}
@ -130,6 +135,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/download-artifact@v3
with:
name: ci-packages-${{ github.sha }}