Update known versions #114
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 known versions" | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 4 * * *" # Run every day at 4am UTC | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Update known versions | |
| id: update-known-versions | |
| run: | |
| node dist/update-known-versions/index.js | |
| src/download/checksum/known-checksums.ts | |
| version-manifest.json | |
| ${{ secrets.GITHUB_TOKEN }} | |
| - run: npm install && npm run all | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
| with: | |
| commit-message: "chore: update known versions" | |
| title: | |
| "chore: update known versions for ${{ | |
| steps.update-known-versions.outputs.latest-version }}" | |
| body: | |
| "chore: update known versions for ${{ | |
| steps.update-known-versions.outputs.latest-version }}" | |
| base: main | |
| labels: "automated-pr,update-known-versions" | |
| branch: update-known-versions-pr | |
| delete-branch: true |