Update styfle/cancel-workflow-action action to v0.12.1 #2226
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Labeling | |
on: | |
issues: | |
types: | |
# Trigger the action only on relevant activity types. | |
# It's actually not harmful to trigger the action on all activity types. | |
- opened | |
- edited | |
pull_request: | |
types: | |
- opened | |
- edited | |
# A GitHub token created for a PR coming from a fork doesn't have | |
# 'admin' or 'write' permission (which is required to add labels) | |
# To avoid this issue, you can use the `scheduled` event and run | |
# this action on a certain interval. | |
# on: | |
# schedule: | |
# - cron: '*/10 * * * *' | |
jobs: | |
labeling: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: harupy/auto-labeling@master | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} | |
label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`' |