Nightly Packmind Artifacts Update #115
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: Nightly Packmind Artifacts Update | |
| on: | |
| schedule: | |
| - cron: '0 2 * * 1-5' # Every weeknight at 02:00 UTC (Mon–Fri) | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-artifacts: | |
| runs-on: ${{ vars.ACTION_RUNNER_TAG || 'self-hosted' }} | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| # PAT with `workflow` scope: the default GITHUB_TOKEN is a GitHub App | |
| # token and is refused when a push touches .github/workflows/* files. | |
| token: ${{ secrets.PACKMIND_BOT_PAT }} | |
| # Force a pristine tree so a stale self-hosted runner workspace can't | |
| # leak unrelated changes (e.g. build.yml) into the artifacts commit. | |
| clean: true | |
| - name: Update Packmind artifacts | |
| uses: PackmindHub/update-packmind-artifacts@v1 | |
| with: | |
| packmind-api-key: ${{ secrets.PACKMIND_API_KEY }} |