diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-08-13 15:18:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-13 15:18:15 +0200 |
| commit | ce172d8d4a94c8ffbe313c240d4bd37acb6fd090 (patch) | |
| tree | d3e5699d3e82ce48a1d62db51dd14ae7ca3cc0e2 /.github/workflows | |
| parent | 6f0d4ccc43d7c8f5dd72d0d83e54e947d05117fa (diff) | |
| download | rneovim-ce172d8d4a94c8ffbe313c240d4bd37acb6fd090.tar.gz rneovim-ce172d8d4a94c8ffbe313c240d4bd37acb6fd090.tar.bz2 rneovim-ce172d8d4a94c8ffbe313c240d4bd37acb6fd090.zip | |
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.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/squash-typos.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/squash-typos.yml b/.github/workflows/squash-typos.yml index 6f5e24a9b6..6779589dc6 100644 --- a/.github/workflows/squash-typos.yml +++ b/.github/workflows/squash-typos.yml @@ -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 }} |