-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from TNG/automate-3rd-party-notice
Automate 3rd party notice
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Update THIRD_PARTY_NOTICE | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*-release' | ||
|
||
jobs: | ||
update-notice: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Update THIRD_PARTY_NOTICE | ||
run: | | ||
echo "*** Running ORT analyzer ***" | ||
docker run -v "$(pwd)":/project philipssoftware/ort --info analyze -f JSON -i /project -o /project/ort | ||
echo "*** Creating ORT report ***" | ||
docker run -v "$(pwd)":/project philipssoftware/ort --info report -f StaticHtml,WebApp,Excel,NoticeTemplate,SPDXDocument,GitLabLicensemodel,AsciiDocTemplate,CycloneDx,EvaluatedModel -i /project/ort/analyzer-result.json -o /project/ort | ||
cp ort/NOTICE_default THIRD_PARTY_NOTICE | ||
- name: Commit THIRD_PARTY_NOTICE | ||
run: | | ||
git config --global user.name 'Ute Weiss' | ||
git config --global user.email '[email protected]' | ||
git add THIRD_PARTY_NOTICE | ||
git commit -sam "chore: update THIRD_PARTY_NOTICE" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters