Skip to content

Commit

Permalink
Minor workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbeitz committed Feb 16, 2024
1 parent 68b2cd0 commit e6b5ae5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/generate-plantuml.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: generate plantuml

on: push
on:
push:
branches-ignore:
- 'main'
- 'release/**'
paths:
- '**.puml'

jobs:
generate_plantuml:
Expand All @@ -9,11 +15,16 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: plantuml
id: plantuml
uses: grassedge/[email protected]
- name: generate plantuml
run: |
sudo apt-get install -y plantuml graphviz
# This uses a slightly off-white background color because #ffffff renders as transparent for some reason
plantuml -tsvg -SbackgroundColor=fefefe -checkmetadata -v **/*.puml
shell: bash
- name: commit changes
uses: EndBug/add-and-commit@v9
with:
path: .
message: "Render PlantUML files"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
author_name: Automated Notice Generation Pipeline
author_email: [email protected]
message: Generate PlantUML Diagrams
pathspec_error_handling: exitAtEnd
2 changes: 1 addition & 1 deletion tools/notice_generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ DOTNET_SRC_DIRECTORY="dtdl-tools/"
echo "Appending .NET Third Party licenses to $NOTICE_FILENAME"
./tools/dotnet_notice_generation.sh $NOTICE_FILENAME $DOTNET_SRC_DIRECTORY ./devops/cg/license_url_to_type.json

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 e6b5ae5

Please sign in to comment.