Test/actions/git v4 #2
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
# 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. |