Design Review Helper v1.8.1 #42
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: Update Downloads | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Update README with latest release | |
| run: | | |
| # Get latest release info | |
| LATEST=$(curl -s "https://api.github.com/repos/${{ github.repository }}/releases/latest") | |
| VERSION=$(echo "$LATEST" | jq -r '.tag_name') | |
| # Update README with latest version info | |
| sed -i "s/Design Review Helper v[0-9.]\+/Design Review Helper $VERSION/g" README.md | |
| # Commit if changes | |
| if ! git diff --quiet README.md; then | |
| git config user.name "GitHub Actions" | |
| git config user.email "actions@github.com" | |
| git add README.md | |
| git commit -m "Update README for release $VERSION" | |
| git push | |
| fi |