Skip to content

Test/actions/git v4

Test/actions/git v4 #2

# SPDX-FileCopyrightText: © 2021 Gaurav Mishra <mishra.gaurav@siemens.com>
# SPDX-License-Identifier: GPL-2.0-only AND LGPL-2.1-only
name: Check PRs for conflicts
on:
pull_request_target:
types: [synchronize]
permissions:
pull-requests: write # to label PRs
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check if PRs are dirty
uses: eps1lon/actions-label-merge-conflict@releases/2.x
with:
dirtyLabel: "has merge conflicts"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: |
This pull request has conflicts, please rebase with master to resolve those before we can evaluate the pull request.