Expense Tracker in C #40
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto Update INDEX.md | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| - name: Run index generator | |
| run: | | |
| python update_index.py | |
| - name: Commit & Push changes | |
| run: | | |
| git config user.name "GitHub Action" | |
| git config user.email "actions@github.com" | |
| git add INDEX.md | |
| git diff --quiet && echo "No changes to commit" || git commit -m "🤖 Auto update INDEX.md" | |
| git push |