Skip to content

Testing dependent jobs, input parameter skip_tests=false #6

Testing dependent jobs, input parameter skip_tests=false

Testing dependent jobs, input parameter skip_tests=false #6

name: testing-dependent-jobs

Check failure on line 1 in .github/workflows/testing-dependent-jobs.yml

View workflow run for this annotation

GitHub Actions / testing-dependent-jobs

Invalid workflow file

The workflow is not valid. .github/workflows/testing-dependent-jobs.yml: (Line: 38, Col: 9, Idx: 712) - (Line: 38, Col: 10, Idx: 713): While parsing a tag, did not find expected tag URI.
run-name: Testing dependent jobs, input parameter skip_tests=${{ inputs.skip_tests }}
on:
workflow_dispatch:
inputs:
skip_tests:
required: false
type: boolean
default: false
description: 'Skip tests during release build'
jobs:
job-01:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: step1
run: echo this is step1
job-2-01:
name: Job-2-01 - could be skipped
if: ${{inputs.skip_tests}}
runs-on: ubuntu-22.04
needs: [ job-01 ]
timeout-minutes: 30
steps:
- name: step2-01
run: echo this is step2-01
job-2-02:
name: Job-2-02 - could be skipped
if: ! ${{inputs.skip_tests}}
runs-on: ubuntu-22.04
needs: [ job-01 ]
timeout-minutes: 30
steps:
- name: step2-02
run: echo this is step2-02
- name: Testing failure
run: exit 1
job-3-01:
name: Job-3-01 - debug outputs
runs-on: ubuntu-22.04
needs: [ job-2-01, job-2-02 ]
if: always()
steps:
- name: Print debug outputs
run: |
echo job-2-01 result: ${{ needs.job-2-01.result }} , job-2-02 result: ${{ needs.job-2-02.result }}