a7aaa7cfac
* replace labeler action with periodic-labeler this replaces the default labeler as it does not label PRs from forks properly. with periodic-labeler it should apply labels on a cron to any PR and resolve the below bug: https://github.com/spf13/cobra/issues/1092
18 lines
508 B
YAML
18 lines
508 B
YAML
---
|
|
name: Pull request labeler
|
|
on:
|
|
schedule:
|
|
- cron: '*/5 * * * *'
|
|
jobs:
|
|
labeler:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# if we are to change the labeler version from v0.0.2
|
|
# we must review the code for that version
|
|
# to make sure there are no leaks or exploits
|
|
- uses: paulfantom/periodic-labeler@v0.0.2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
LABEL_MAPPINGS_FILE: .github/labeler.yml
|