fix(pr-validation): pin composite refs to v1.20.0 #51
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: Self — Branch Cleanup | |
| on: | |
| schedule: | |
| - cron: "0 3 * * 1" # every Monday at 03:00 UTC | |
| pull_request: | |
| types: | |
| - closed | |
| workflow_dispatch: | |
| inputs: | |
| dry_run: | |
| description: Preview deletions without applying them | |
| type: boolean | |
| default: true | |
| stale_days: | |
| description: Days without commits before a branch is stale | |
| type: number | |
| default: 30 | |
| permissions: | |
| contents: write | |
| pull-requests: read | |
| jobs: | |
| stale: | |
| name: Clean stale branches | |
| if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' | |
| uses: ./.github/workflows/branch-cleanup.yml | |
| with: | |
| stale_days: ${{ inputs.stale_days || 30 }} | |
| dry_run: ${{ inputs.dry_run || false }} | |
| secrets: inherit | |
| merged: | |
| name: Delete merged branch | |
| if: github.event_name == 'pull_request' && github.event.pull_request.merged == true | |
| uses: ./.github/workflows/branch-cleanup.yml | |
| with: | |
| merged_branch: ${{ github.head_ref }} | |
| dry_run: false | |
| secrets: inherit |