Skip to content

Commit

Permalink
Update notice file workflow to work even if the file doesn't exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
ladatz committed Feb 9, 2024
1 parent aa0e8d9 commit 7ec0661
Showing 1 changed file with 1 addition and 1 deletion.
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 7ec0661

Please sign in to comment.