Skip to content

Commit

Permalink
feat: create and commit THIRD_PARTY_NOTICE directly in workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Ute Weiss <[email protected]>
  • Loading branch information
weissu42 committed Sep 30, 2021
1 parent f8569c1 commit 8d86efb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 65 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/update_notice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
59 changes: 0 additions & 59 deletions update_notice.sh

This file was deleted.

0 comments on commit 8d86efb

Please sign in to comment.