ci: fix typo squasher by changing trigger to "pull_request_target" (#15357)

The "pull_request" trigger only enables read-access for forks,
"pull_request_target" is required if a fork is to be a trigger. Also
changed the python script to reflect this change.
This commit is contained in:
dundargoc
2021-08-13 15:18:15 +02:00
committed by GitHub
parent 6f0d4ccc43
commit ce172d8d4a
2 changed files with 109 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
name: Squash Typo Pull Requests
on:
pull_request:
pull_request_target:
types: labeled
concurrency:
group: ${{ github.workflow }}
@@ -21,7 +21,6 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
- uses: actions/setup-python@v2
- name: Setup git config
@@ -30,3 +29,5 @@ jobs:
git config --global user.email 'marvim@users.noreply.github.com'
- run: python scripts/squash_typos.py
env:
PR_NUMBER: ${{ github.event.number }}