Support POST /jobs
for various workflow implementations
#2482
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
# reference: https://github.com/github/issue-labeler | |
name: "Issue Labeler" | |
on: | |
issues: | |
types: [opened, edited] | |
# cancel the current workflow if another commit was pushed on the same PR or reference | |
# uses the GitHub workflow name to avoid collision with other workflows running on the same PR/reference | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
issues: write | |
contents: read | |
jobs: | |
triage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: github/[email protected] | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
configuration-path: .github/labeler-words.yml | |
enable-versioned-regex: 0 | |
include-title: 1 | |
include-body: 1 | |
sync-labels: 0 |