Fix #138
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
| --- | |
| # fullsend-stage: fix | |
| # lint-workflow-size: max-lines=310 | |
| name: Fix | |
| permissions: | |
| actions: write | |
| contents: write | |
| id-token: write | |
| issues: write | |
| packages: read | |
| pull-requests: write | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| event_type: | |
| required: true | |
| type: string | |
| source_repo: | |
| required: true | |
| type: string | |
| event_payload: | |
| required: true | |
| type: string | |
| trigger_source: | |
| required: true | |
| type: string | |
| description: "GitHub username that triggered the fix; bot accounts end with [bot]" | |
| pr_number: | |
| required: false | |
| type: string | |
| description: "PR number (workflow_dispatch manual fallback)" | |
| instruction: | |
| required: false | |
| type: string | |
| description: "Human instruction (workflow_dispatch manual fallback)" | |
| # Single concurrency group per PR. A human /fix cancels any running fix | |
| # (bot or human) so the human's instruction takes immediate effect. | |
| # Bot-triggered runs also cancel previous bot runs on the same PR. | |
| concurrency: | |
| group: >- | |
| fullsend-fix-${{ inputs.source_repo }}-${{ | |
| fromJSON(inputs.event_payload).pull_request.number | |
| || fromJSON(inputs.event_payload).issue.number | |
| || inputs.pr_number | |
| }} | |
| cancel-in-progress: true | |
| jobs: | |
| fix: | |
| uses: fullsend-ai/fullsend/.github/workflows/reusable-fix.yml@main | |
| with: | |
| event_type: ${{ inputs.event_type }} | |
| source_repo: ${{ inputs.source_repo }} | |
| event_payload: ${{ inputs.event_payload }} | |
| trigger_source: ${{ inputs.trigger_source }} | |
| pr_number: ${{ inputs.pr_number || '' }} | |
| instruction: ${{ inputs.instruction || '' }} | |
| mint_url: ${{ vars.FULLSEND_MINT_URL }} | |
| gcp_region: ${{ vars.FULLSEND_GCP_REGION }} | |
| fullsend_ai_ref: main | |
| fullsend_version: main | |
| secrets: | |
| FULLSEND_GCP_WIF_PROVIDER: ${{ secrets.FULLSEND_GCP_WIF_PROVIDER }} | |
| FULLSEND_GCP_PROJECT_ID: ${{ secrets.FULLSEND_GCP_PROJECT_ID }} |