Skip to content

Refactor start into a reusable workflow. #9

Refactor start into a reusable workflow.

Refactor start into a reusable workflow. #9

Workflow file for this run

name: Test
on:
pull_request:
workflow_dispatch:
jobs:
start_workflow:
name: Start
uses: ./.github/workflows/start.yaml
secrets: inherit
check_output:
name: Check output
needs: start_workflow
# runs-on: ubuntu-latest
runs-on: ${{ needs.start_workflow.outputs.exit_code == 3 && ubuntu-20.04 || ubuntu-24.04 }}

Check failure on line 18 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yaml (Line: 18, Col: 14): Unrecognized named-value: 'ubuntu-20'. Located at position 48 within expression: needs.start_workflow.outputs.exit_code == 3 && ubuntu-20.04 || ubuntu-24.04
steps:
- run: "echo Exit code: ${{ needs.start_workflow.outputs.exit_code }}"