Skip to content

Commit a8082c0

Browse files
authored
Merge pull request #198 from apache/DaanHoogland-patch-1
Update Apache RAT version to 0.17 in workflow
2 parents f85e849 + d6afd24 commit a8082c0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/rat.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242

4343
- name: Download Apache RAT
4444
run: |
45-
curl -L -O https://downloads.apache.org/creadur/apache-rat-0.16.1/apache-rat-0.16.1-bin.tar.gz
46-
tar -xzf apache-rat-0.16.1-bin.tar.gz
45+
curl -L -O https://downloads.apache.org/creadur/apache-rat-0.17/apache-rat-0.17-bin.tar.gz
46+
tar -xzf apache-rat-0.17-bin.tar.gz
4747
4848
- name: Run RAT
4949
run: |
50-
java -jar apache-rat-0.16.1/apache-rat-0.16.1.jar -d . -E .rat-excludes > rat-report.txt
50+
java -jar apache-rat-0.17/apache-rat-0.17.jar -d . -E .rat-excludes > rat-report.txt
5151
cat rat-report.txt
5252
# Fail if unapproved licenses are found
53-
grep -qe '^0 Unknown Licenses' rat-report.txt && exit 0 || exit 1
53+
grep -qe '^\s*Unapproved:\s*0\s*A count of unapproved licenses.$' rat-report.txt && exit 0 || exit 1

.rat-excludes

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
.rat-excludes
12
CHANGES.md
3+
apache-rat-0.17
24
go.sum
35
rat-report.txt
4-
apache-rat-0.16.1
5-
snapcraft.yaml
6-
vendor
7-
.rat-excludes
6+
/snap/snapcraft.yaml
7+
vendor

0 commit comments

Comments
 (0)