Skip to content

Commit

Permalink
Improve workflow error handling and debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacck committed Dec 15, 2024
1 parent 5412da4 commit d6402d8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/architecture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -29,15 +30,22 @@ jobs:
python -m pip install --upgrade pip
pip install diagrams
- name: List files
run: ls -la

- name: Create architecture diagram
run: python architecture_generator.py
run: |
pwd
python -c "import sys; print(sys.path)"
python architecture_generator.py
env:
PYTHONPATH: ${{ github.workspace }}

- name: Commit diagram
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add architecture.png
git commit -m "Update architecture diagram [skip ci]" || exit 0
git push
git add architecture.png || echo "No diagram to add"
git status
git commit -m "Update architecture diagram [skip ci]" || echo "No changes to commit"
git push || echo "No changes to push"

0 comments on commit d6402d8

Please sign in to comment.