Repository navigation
Sync upstream updates: sub-agent tool failures, Scout PostgreSQL full-text search and head Open Graph defaults #1098
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: submission maintenance | ||
|
Check warning on line 1 in .github/workflows/submission-maintenance.yml
|
||
| on: | ||
| schedule: | ||
| - cron: '23 4 * * *' | ||
| workflow_dispatch: | ||
| inputs: | ||
| dry_run: | ||
| description: Report intended actions without changing issues or pull requests | ||
| type: boolean | ||
| default: true | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize, edited, converted_to_draft] | ||
| pull_request: | ||
| paths: | ||
| - '.github/scripts/submission-cleanup*' | ||
| - '.github/workflows/submission-maintenance.yml' | ||
| push: | ||
| branches: ['0.4'] | ||
| paths: | ||
| - '.github/scripts/submission-cleanup*' | ||
| - '.github/workflows/submission-maintenance.yml' | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| if: github.event_name == 'pull_request' || github.event_name == 'push' | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@v7.1.0 | ||
| with: | ||
| node-version: 24 | ||
| - run: node --test .github/scripts/submission-cleanup.test.cjs | ||
| cleanup: | ||
| if: >- | ||
| github.repository == 'hypervel/components' && | ||
| (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || | ||
| github.event_name == 'pull_request_target') | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| concurrency: | ||
| group: submission-cleanup-${{ github.event.pull_request.number || 'sweep' }} | ||
| cancel-in-progress: false | ||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| pull-requests: write | ||
| steps: | ||
| # The write-enabled job only loads scripts from the trusted default branch. | ||
| - uses: actions/checkout@v7.0.1 | ||
| with: | ||
| ref: ${{ github.event.repository.default_branch }} | ||
| persist-credentials: false | ||
| sparse-checkout: .github/scripts | ||
| - uses: actions/github-script@v9.0.0 | ||
| env: | ||
| CLEANUP_DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }} | ||
| with: | ||
| script: | | ||
| const cleanup = require('./.github/scripts/submission-cleanup.cjs'); | ||
| await cleanup({ | ||
| github, context, core, | ||
| dryRun: process.env.CLEANUP_DRY_RUN === 'true', | ||
| }); | ||