Skip to content

Commit

Permalink
ci: Use latest RAT snapshots
Browse files Browse the repository at this point in the history
SPDX support is only available in unreleased RAT snapshot so for now
use latest snapshots.
  • Loading branch information
sjanc committed Sep 20, 2023
1 parent b7bba88 commit b24f1df
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check_compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ jobs:
fetch-depth: 0
- name: Install Dependencies
run: |
wget https://dlcdn.apache.org//creadur/apache-rat-0.15/apache-rat-0.15-bin.tar.gz
tar zxf apache-rat-0.15-bin.tar.gz apache-rat-0.15/apache-rat-0.15.jar
mv apache-rat-0.15/apache-rat-0.15.jar apache-rat.jar
sudo apt-get update
sudo apt-get install -y libxml2-utils
wget https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/maven-metadata.xml -O snapshot.xml
SNAPSHOT=`xmllint --xpath "//latest/text()" snapshot.xml`
wget https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/$SNAPSHOT/maven-metadata.xml -O version.xml
VERSION=`xmllint --xpath "//snapshotVersion[1]/value/text()" version.xml`
wget https://repository.apache.org/content/repositories/snapshots/org/apache/rat/apache-rat/$SNAPSHOT/apache-rat-$VERSION.jar -O apache-rat.jar
- name: check licensing
run: |
.github/check_license.py

0 comments on commit b24f1df

Please sign in to comment.