File tree Expand file tree Collapse file tree 1 file changed +20
-23
lines changed
Expand file tree Collapse file tree 1 file changed +20
-23
lines changed Original file line number Diff line number Diff line change 11name : test
22on :
3- push :
4- branches : ["**"]
5-
3+ workflow_dispatch :
4+ inputs : # null for another event
5+ skip :
6+ type : choice
7+ default : no
8+ options :
9+ - no
10+ - workflow
11+ - job
612permissions : {}
713
14+ concurrency :
15+ group : ${{ github.workflow }}-workflow
16+ cancel-in-progress : ${{ inputs.skip != 'job' }}
17+
818jobs :
919 test1 :
10- if : true # test
20+ if : ${{ inputs.skip == 'no'}}
1121 runs-on : ubuntu-latest
1222 steps :
13- - run : |
14- cat << 'EOF' >> $GITHUB_STEP_SUMMARY
15- inputs
16- ```json
17- ${{ toJSON(inputs) }}
18- ```
19- ${{ toJSON(inputs) == '{}' }}
20- EOF
23+ - run : sleep 60
2124 test2 :
22- if : ${{ !startsWith(github.event.head_commit.message, 'chore(main):\ ')}}
25+ concurrency :
26+ group : ${{ github.workflow }}-job
27+ cancel-in-progress : true
28+ if : ${{ inputs.skip != 'job'}}
2329 runs-on : ubuntu-latest
2430 steps :
25- - run : |
26- echo "test2: ${{ !startsWith(github.event.head_commit.message, 'chore(main)')}}" >> $GITHUB_STEP_SUMMARY
27- test3 :
28- runs-on : ubuntu-latest
29- steps :
30- - run : |
31- echo "test3: ${{ false == null }}" >> $GITHUB_STEP_SUMMARY
32-
33- call-test :
34- uses : ./.github/workflows/debug.yml
31+ - run : sleep 120
You can’t perform that action at this time.
0 commit comments