fix: use periodic-labeler instead of labeler
The starter labeler action tries to run on the forked repository instead of the origin repository - which errors due to lack of permissions (good). See https://github.com/actions/labeler/issues/12 Switched to periodic-labeler as it runs on origin as intended.
This commit is contained in:
parent
392ec2ae8a
commit
110466d172
26
.github/workflows/label.yml
vendored
26
.github/workflows/label.yml
vendored
@ -1,19 +1,13 @@
|
|||||||
# This workflow will triage pull requests and apply a label based on the
|
name: Pull Request Labeler
|
||||||
# paths that are modified in the pull request.
|
on:
|
||||||
#
|
schedule:
|
||||||
# To use this workflow, you will need to set up a .github/labeler.yml
|
- cron: '0 0 * * *'
|
||||||
# file with configuration. For more information, see:
|
|
||||||
# https://github.com/actions/labeler/blob/master/README.md
|
|
||||||
|
|
||||||
name: Labeler
|
|
||||||
on: [pull_request]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
label:
|
labeler:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v2
|
- uses: paulfantom/periodic-labeler@master
|
||||||
with:
|
env:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||||
|
LABEL_MAPPINGS_FILE: .github/labeler.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user