| 1 | name: Job options |
| 2 | on: push |
| 3 | jobs: |
| 4 | first: |
| 5 | name: The first job |
| 6 | runs-on: ubuntu-latest |
| 7 | timeout-minutes: 15 |
| 8 | continue-on-error: false |
| 9 | env: |
| 10 | LEVEL: job |
| 11 | steps: |
| 12 | - run: echo "$LEVEL" |
| 13 | second: |
| 14 | name: ${{ format('Second for {0}', github.ref_name) }} |
| 15 | needs: first |
| 16 | if: github.event_name == 'push' |
| 17 | runs-on: ubuntu-latest |
| 18 | steps: |
| 19 | - run: echo second |
| 20 | _private_helper: |
| 21 | runs-on: ubuntu-latest |
| 22 | steps: |
| 23 | - run: echo underscore ids are allowed |
| 24 | Mixed-Case_2: |
| 25 | runs-on: ubuntu-latest |
| 26 | steps: |
| 27 | - run: echo mixed |