chore: remove pr template #67
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: Needs run on specific job run | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
workflow_dispatch: | |
inputs: | |
only-c: | |
description: 'Run only Job C' | |
required: false | |
default: false | |
type: boolean | |
jobs: | |
A: | |
if: ${{ !inputs.only-c }} | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "a" | |
B: | |
if: ${{ !inputs.only-c }} | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "b" | |
C: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "c" | |
# D will run when "C is success" or "all the jobs are success". | |
D: | |
needs: [A, B, C] | |
if: ${{ inputs.only-c && needs.C.result == 'success' || success() }} | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "d" |