Skip to content

Commit b76cda2

Browse files
committed
ci: diff github action to check license/readme/changelog files
1 parent ed813f0 commit b76cda2

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/diff.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: "Check LICENSE/README/CHANGELOG"
3+
on: [pull_request]
4+
5+
jobs:
6+
diff:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Check that the LICENSE files are the exact same
11+
uses: LouisBrunner/[email protected]
12+
with:
13+
old: LICENSE.md
14+
new: src/Packages/Passport/LICENSE.md
15+
mode: strict
16+
tolerance: same
17+
output: LICENSE-diff.txt
18+
- name: Check that the README files are the exact same
19+
uses: LouisBrunner/[email protected]
20+
with:
21+
old: README.md
22+
new: src/Packages/Passport/README.md
23+
mode: strict
24+
tolerance: same
25+
output: README-diff.txt
26+
- name: Check that the CHANGELOG files are the exact same
27+
uses: LouisBrunner/[email protected]
28+
with:
29+
old: CHANGELOG.md
30+
new: src/Packages/Passport/CHANGELOG.md
31+
mode: strict
32+
tolerance: same
33+
output: changelog-diff.txt

LICENSE renamed to LICENSE.md

File renamed without changes.

0 commit comments

Comments
 (0)