Skip to content

Commit

Permalink
Add workflow to detect conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
der-eismann committed Jan 19, 2024
1 parent bdab717 commit 30b4ffc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/conflicts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check packages for file conflicts

on:
push:
branches:
- main
pull_request:

jobs:
detect_conflicts:
runs-on: ubuntu-latest
permissions:
pull-requests: write
name: Detect file conflicts in packages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run detection script
uses: serpent-os/check-for-file-conflicts@main
id: conflicts
- uses: mshick/add-pr-comment@v2
if: failure() && github.event_name == 'pull_request'
with:
message: |
```
${{ steps.conflicts.outputs.packages }}
```
- uses: mshick/add-pr-comment@v2
if: success() && github.event_name == 'pull_request'
with:
update-only: true
message: |
No duplicate files detected anymore!

0 comments on commit 30b4ffc

Please sign in to comment.