Refactor start into a reusable workflow. #9
Workflow file for this run
This file contains 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: 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 GitHub Actions / TestInvalid workflow file
|
||
steps: | ||
- run: "echo Exit code: ${{ needs.start_workflow.outputs.exit_code }}" |