2021-12-30 17:32:11 +01:00
|
|
|
name: "Check Potential Conflicts"
|
2022-01-13 15:26:47 +01:00
|
|
|
on:
|
|
|
|
- pull_request_target
|
|
|
|
- pull_request_review
|
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:
|
|
|
|
main:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-01-13 15:26:47 +01:00
|
|
|
- name: check for potential conflicts
|
|
|
|
uses: PastaPastaPasta/potential-conflicts-checker-action@0.1.9
|
2021-12-30 17:32:11 +01:00
|
|
|
with:
|
|
|
|
ghToken: "${{ secrets.GITHUB_TOKEN }}"
|
2022-01-13 15:26:47 +01:00
|
|
|
- name: validate potential conflicts
|
|
|
|
run: wget https://raw.githubusercontent.com/dashpay/dash/develop/.github/workflows/handle_potential_conflicts.py && pip3 install hjson && python3 handle_potential_conflicts.py "$conflicts"
|