Skip to content

Commit

Permalink
Merge pull request #39 from TNG/automate-3rd-party-notice
Browse files Browse the repository at this point in the history
Automate 3rd party notice
  • Loading branch information
NiklasEi authored Sep 30, 2021
2 parents 2bfc163 + 39234d2 commit 7a00a50
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/update_notice.yml
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
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi
git pull "${UPSTREAM_URL}" "${UPSTREAM_BRANCH}"

echo "Checking version in package.json"
if [ ! -n "$(sed -n -e "/\"version\": \"${VERSION}\"/ p" package.json)" ]; then
if [ -z "$(sed -n -e "/\"version\": \"${VERSION}\"/ p" package.json)" ]; then
echo "Version in package.json is not $VERSION!"
exit 1
fi
Expand Down

0 comments on commit 7a00a50

Please sign in to comment.