Skip to content

Commit

Permalink
Don't try push if the UML didn't change
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrmanator committed Aug 12, 2024
1 parent fef995e commit 1939f01
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/generateUml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ jobs:
with:
args: -v -config "doc-metamodel/skins.include.cfg" -tsvg doc-uml/famix-typescript-model.puml

- name: Check if UML files have changed
id: check_changes
run: |
git fetch origin
git diff --exit-code origin/${{ github.ref }} -- doc-uml/famix-typescript-model.puml doc-uml/famix-typescript-model.svg || echo "Files have changed"
- name: Push docs to current branch
if: success()
if: steps.check_changes.outputs.changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit 1939f01

Please sign in to comment.