Skip to content

Commit

Permalink
ci: diff github action to check license/readme/changelog files
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Feb 12, 2024
1 parent ed813f0 commit 6d7e012
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: "Check LICENSE/README/CHANGELOG diff"
on: [pull_request]

jobs:
diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check that the LICENSE files are the exact same
uses: LouisBrunner/[email protected]
with:
old: LICENSE.md
new: src/Packages/Passport/LICENSE.md
mode: strict
tolerance: same
output: LICENSE-diff.txt
- name: Check that the README files are the exact same
uses: LouisBrunner/[email protected]
with:
old: README.md
new: src/Packages/Passport/README.md
mode: strict
tolerance: same
output: README-diff.txt
- name: Check that the CHANGELOG files are the exact same
uses: LouisBrunner/[email protected]
with:
old: CHANGELOG.md
new: src/Packages/Passport/CHANGELOG.md
mode: strict
tolerance: same
output: changelog-diff.txt
File renamed without changes.

0 comments on commit 6d7e012

Please sign in to comment.