Skip to content

Use LF EOL for YAML #29

Use LF EOL for YAML

Use LF EOL for YAML #29

name: Label merge conflicts
on:
push:
branches: [master]
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
env:
CHECK_PERMISSIONS: 0
permissions: {}
jobs:
label-conflicts:
name: Label Merge Conflicts
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: write # Need to label PR
steps:
- id: check-permissions
name: Check action permissions
uses: GitHubSecurityLab/actions-permissions/monitor@bf82d13b9b10051d224345ab9184f5ede0a94289 # v1.0.2-beta9
if: env.CHECK_PERMISSIONS == '1'
# https://github.com/marketplace/actions/auto-label-merge-conflicts
- id: label-merge-conflict
name: Label merge conflict
uses: mschilde/auto-label-merge-conflicts@3fdaf1c8b3f8e5b0f88753d9cb3c9c779370b3ef # master
with:
CONFLICT_LABEL_NAME: 💥 Conflicts
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAX_RETRIES: 5
WAIT_MS: 5000