Skip to content

Commit

Permalink
change the action
Browse files Browse the repository at this point in the history
  • Loading branch information
yonatankarp committed Jun 8, 2024
1 parent 3c62214 commit dacd90e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/generate-c4-diagram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
with:
args: './docs/c4/architecture.puml'

- name: Commit Diagram to Branch
- name: Check for Diagram Changes
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add .
git diff-index --quiet HEAD || git commit -m 'Update architecture diagram [skip ci]'
git push origin HEAD:${{ github.head_ref }}
git add ./docs/c4/architecture.png
if ! git diff --cached --exit-code; then
echo "Diagrams do not match. You can re-generate the diagram by running the command plantuml docs/c4/architecture.puml."
exit 1
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dacd90e

Please sign in to comment.