[automated] Updating /docs due to commit 74994ab #481
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: Android | |
| run-name: ${{ github.event.workflow_run.display_title }} | |
| on: | |
| workflow_run: | |
| workflows: ["Postsubmit CI"] | |
| types: [completed] | |
| jobs: | |
| status: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.workflow_run.conclusion != 'skipped' }} | |
| steps: | |
| - uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0 | |
| with: | |
| script: | | |
| const { data: { jobs } } = await github.rest.actions.listJobsForWorkflowRun({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| run_id: ${{ github.event.workflow_run.id }} | |
| }); | |
| const job = jobs.find(j => j.name === 'build-android'); | |
| if (job && job.conclusion !== 'success') { | |
| core.setFailed(`Android build failed: ${job.conclusion}`); | |
| } else if (!job) { | |
| core.warning(`Job build-android not found in the workflow run.`); | |
| } |