Add+update workflows. #1
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: "Label merge conflicts" | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
pull-requests: write | |
# https://www.meziantou.net/how-to-cancel-github-workflows-when-pushing-new-commits-on-a-branch.htm | |
concurrency: | |
# github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
triage: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
# https://github.com/marketplace/actions/auto-label-merge-conflicts | |
- uses: mschilde/auto-label-merge-conflicts@master | |
with: | |
CONFLICT_LABEL_NAME: "💥 Conflicts" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MAX_RETRIES: 5 | |
WAIT_MS: 5000 |