-
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.
feat: create and commit THIRD_PARTY_NOTICE directly in workflow
Signed-off-by: Ute Weiss <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
65 deletions.
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 |
---|---|---|
|
@@ -6,11 +6,21 @@ on: | |
- '*-3rd-party-notice' | ||
|
||
jobs: | ||
build: | ||
update-notice: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Update third party notice | ||
uses: actions/checkout@v2 | ||
- shell: bash | ||
run: ./update_notice.sh --dry-run | ||
- 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 was deleted.
Oops, something went wrong.