Automated Maintenance #20
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: Automated Maintenance | |
| on: | |
| schedule: | |
| - cron: '0 10 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| get-configs: | |
| uses: ./.github/workflows/configs.yml | |
| maintenance: | |
| needs: [get-configs] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Node.js ${{ needs.get-configs.outputs.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ needs.get-configs.outputs.node-version }} | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Install git-secrets | |
| run: | | |
| git clone https://github.com/awslabs/git-secrets.git /tmp/git-secrets | |
| cd /tmp/git-secrets | |
| sudo make install | |
| - name: Update wheels | |
| run: npm run download-wheels | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| commit-message: 'chore: Maintenance update' | |
| branch: maintenance/update | |
| delete-branch: true | |
| title: 'chore: Maintenance Update' | |
| body: | | |
| Automated maintenance update. | |
| - Updated wheels via download-wheels | |
| This PR was created by the `maintenance` workflow. | |
| > To trigger validation, close and reopen this PR. | |
| labels: maintenance, automated |