Update TODO Badges #3
This file contains 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: Update TODO Badges | |
on: | |
push: | |
paths: | |
- 'docs/todo.md' | |
workflow_dispatch: | |
jobs: | |
update-badges: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Ensure PowerShell is installed | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y powershell | |
- name: List files for debugging | |
run: ls -R | |
- name: Make script executable | |
run: chmod +x scripts/update-todo-badges.ps1 | |
- name: Update TODO badges | |
shell: pwsh | |
run: scripts/update-todo-badges.ps1 | |
- name: Commit changes | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add README.md | |
git diff --quiet && git diff --staged --quiet || git commit -m "docs: update todo badges" | |
git push |