self-review #23
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-review | |
| # olympus dogfooding its OWN review surface (themis) on its OWN PRs, via a local | |
| # reusable-workflow ref. Fires after this repo's `ci` workflow succeeds on a PR. | |
| # DORMANT until `SELF_DOGFOOD_ENABLED == 'true'` AND secrets + a self-hosted | |
| # runner are provisioned (see SELF-DOGFOOD.md). | |
| on: | |
| workflow_run: | |
| workflows: ["ci"] | |
| types: [completed] | |
| workflow_dispatch: | |
| inputs: | |
| pr_number: | |
| description: PR number to review | |
| required: true | |
| type: number | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| statuses: read | |
| jobs: | |
| review: | |
| if: ${{ vars.SELF_DOGFOOD_ENABLED == 'true' }} | |
| uses: ./.github/workflows/review.yml | |
| with: | |
| olympus_repo: ${{ github.repository }} | |
| olympus_ref: ${{ github.sha }} | |
| runner_labels: '["self-hosted","olympus"]' | |
| pr_number: ${{ inputs.pr_number }} | |
| secrets: inherit |