Zernit/.github/workflows/labeler.yml

18 lines
668 B
YAML
Raw Normal View History

2020-02-05 13:35:03 +01:00
# Workflow to associate labels automatically
2020-02-05 14:01:20 +01:00
name: labeler
2020-02-05 13:15:02 +01:00
2020-02-05 13:35:03 +01:00
# Trigger the workflow on pull request events
2020-01-12 04:47:34 +01:00
on: [pull_request]
jobs:
label:
2020-02-05 13:35:03 +01:00
runs-on: ubuntu-18.04
2020-01-12 04:47:34 +01:00
steps:
2020-02-05 13:35:03 +01:00
# We need to checkout the repository to access the configured file (.github/label-pr.yml)
- uses: actions/checkout@v2
- name: Labeler
uses: docker://decathlon/pull-request-labeler-action:2.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Here we can override the path for the action configuration. If none is provided, default one is `.github/label-pr.yml`
CONFIG_PATH: ${{ secrets.GITHUB_WORKSPACE }}/.github/label-pr.yml