V1.0.7 #1
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 Releases Data | |
| on: | |
| release: | |
| types: [published, edited, deleted] | |
| workflow_dispatch: {} | |
| jobs: | |
| update-releases-json: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| persist-credentials: true | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Fetch latest GitHub releases | |
| run: node scripts/fetch-releases.js | |
| env: | |
| DOCUSAURUS_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Commit updated releases.json | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add src/data/releases.json | |
| git diff --cached --quiet && echo "No changes to commit" || git commit -m "chore: update releases.json for /updates page" | |
| git push |