Replace brittle inline script with Node.js script (#3619)

This commit is contained in:
Bart Louwers
2025-07-16 13:37:40 +02:00
committed by GitHub
parent 3adf431b19
commit a465aee324
6 changed files with 268 additions and 55 deletions

View File

@@ -84,11 +84,13 @@ jobs:
with:
node-version-file: '.nvmrc'
- id: parent_workflow
run: |
conclusion=$(curl --retry 12 --retry-all-errors ${{ github.event.workflow_run.jobs_url }} | jq -r '.jobs[] | select(.name == "android-build").conclusion')
was_skipped=$([[ "$conclusion" = "skipped" || "$conclusion" = "cancelled" ]] && echo "true" || echo "false")
echo "was_skipped=$was_skipped" >> "$GITHUB_OUTPUT"
- name: Check if android-build was skipped
id: parent_workflow
run: node .github/scripts/check-job-skipped.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_RUN_ID: ${{ github.event.workflow_run.jobs_url }}
JOB_NAME: android-build
# get comment from PR

View File

@@ -13,4 +13,4 @@ jobs:
- run: |
npm install
npx tsc -p scripts/jsconfig.json
npx tsc -p tsconfig.json