Skip to content

Commit

Permalink
Update notice file workflow (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ladatz authored Feb 15, 2024
1 parent b8528bc commit a5853d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
9 changes: 6 additions & 3 deletions devops/cg/about.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
accepted = [
"MIT",
"Apache-2.0",
"Unicode-DFS-2016",
"BSD-2-Clause",
"BSD-3-Clause",
"Zlib",
"CC0-1.0",
"EPL-1.0",
"EPL-2.0",
"ISC",
"MIT",
"Unicode-DFS-2016",
"Zlib",
]
24 changes: 0 additions & 24 deletions devops/cg/component-governance.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tools/notice_generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ NOTICE_FILENAME="NOTICE"
echo "Running cargo-about for NOTICE file generation..."
cargo about generate --workspace devops/cg/about.hbs --config devops/cg/about.toml | sed -E 's/[ \t]+\r?$//' > $NOTICE_FILENAME

if [ -z "$(git diff --name-only $NOTICE_FILENAME)" ]
if [ -z "$(git diff --name-only $NOTICE_FILENAME)" ] && [ -z "$(git ls-files --others --exclude-standard)"]
then
echo "File not changed"
else
Expand Down

0 comments on commit a5853d7

Please sign in to comment.