dash/.github/workflows/predict-conflicts.yml
PastaPastaPasta f3cd4046c9
actions: introduce handle_potential_conflicts.py to only warn on true conflicts. Fail CI when there is a conflict (#4655)
* introduce handle_potential_conflicts.py to only warn on true conflicts. Fail CI when there is a conflict

Signed-off-by: Pasta <pasta@dashboost.org>

* remove unneeded input assign

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>

* use dashpay instead of PastaPastaPasta

Signed-off-by: Pasta <pasta@dashboost.org>

* Update .github/workflows/handle_potential_conflicts.py

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>

* more linter fixes

Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
2022-01-13 17:26:47 +03:00

29 lines
812 B
YAML

name: "Check Potential Conflicts"
on:
- pull_request_target
- pull_request_review
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:
- name: check for potential conflicts
uses: PastaPastaPasta/potential-conflicts-checker-action@0.1.9
with:
ghToken: "${{ secrets.GITHUB_TOKEN }}"
- 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"