2021-12-30 17:32:11 +01:00
|
|
|
name: "Check Potential Conflicts"
|
2024-08-12 16:45:46 +02:00
|
|
|
|
2022-01-13 15:26:47 +01:00
|
|
|
on:
|
2024-08-12 16:45:46 +02:00
|
|
|
pull_request_target:
|
|
|
|
pull_request_review:
|
2024-08-12 16:00:50 +02:00
|
|
|
types: [submitted]
|
2021-12-30 17:32:11 +01:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
# Enforce other not needed permissions are off
|
|
|
|
actions: none
|
|
|
|
checks: none
|
|
|
|
deployments: none
|
|
|
|
issues: none
|
|
|
|
packages: none
|
|
|
|
repository-projects: none
|
|
|
|
security-events: none
|
|
|
|
statuses: none
|
|
|
|
|
|
|
|
jobs:
|
2024-09-04 20:17:42 +02:00
|
|
|
predict_conflicts:
|
2021-12-30 17:32:11 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-01-13 15:26:47 +01:00
|
|
|
- name: check for potential conflicts
|
2023-04-17 00:41:18 +02:00
|
|
|
uses: PastaPastaPasta/potential-conflicts-checker-action@v0.1.10
|
2021-12-30 17:32:11 +01:00
|
|
|
with:
|
|
|
|
ghToken: "${{ secrets.GITHUB_TOKEN }}"
|
2023-04-17 00:41:18 +02:00
|
|
|
- name: Checkout
|
2023-08-01 19:17:40 +02:00
|
|
|
uses: actions/checkout@v3
|
2022-01-13 15:26:47 +01:00
|
|
|
- name: validate potential conflicts
|
2023-04-17 00:41:18 +02:00
|
|
|
run: pip3 install hjson && .github/workflows/handle_potential_conflicts.py "$conflicts"
|