Skip to content

Commit

Permalink
#34 close pull-request if not reuse compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcellino-Palerme committed Jan 17, 2024
1 parent 288d7ac commit eb71abf
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/reuse_compliant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
name: REUSE Compliance Check

on:
pull_request:
pull_request_target:
branches:
- main
- develop
Expand All @@ -14,8 +14,17 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
# Load my repo
- uses: actions/checkout@v4
# Check if futur new repo is REUSE compliant
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v2
with:
args: --include-submodules lint
args: --include-submodules lint
# Close pull request if not REUSE compliant
- name: Stop pull request
if: ${{ failure() }}
uses: superbrothers/close-pull-request@v3
with:
# Optional. Post a issue comment just before closing a pull request.
comment: "We do not accept PRs. Your part isn't REUSE Compliant. (see reuse.software)."

0 comments on commit eb71abf

Please sign in to comment.