File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
content/actions/learn-github-actions Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -767,10 +767,14 @@ on:
767
767
deploy_target:
768
768
required: true
769
769
type: string
770
+ perform_deploy:
771
+ required: true
772
+ type: boolean
770
773
771
774
jobs:
772
775
deploy:
773
776
runs-on: ubuntu-latest
777
+ if: ${{ inputs.perform_deploy == 'true' }}
774
778
steps:
775
779
- name: Deploy build to target
776
780
run: deploy --build ${{ inputs.build_id }} --target ${{ inputs.deploy_target }}
Original file line number Diff line number Diff line change 15
15
- info
16
16
- warning
17
17
- debug {% endif %}
18
+ print_tags :
19
+ description : ' True to print to STDOUT'
20
+ required : true {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %}
21
+ type : boolean {% endif %}
18
22
tags :
19
23
description : ' Test scenario tags'
20
- required : false {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %}
21
- type : boolean
24
+ required : true {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %}
25
+ type : string
22
26
environment :
23
27
description : ' Environment to run tests against'
24
28
type : environment
27
31
jobs :
28
32
print-tag :
29
33
runs-on : ubuntu-latest
30
-
34
+ if : {% raw %} ${{ github.event.inputs.print_tags == 'true' }} {% endraw %}
31
35
steps :
32
36
- name : Print the input tag to STDOUT
33
37
run : echo {% raw %} The tag is ${{ github.event.inputs.tag }} {% endraw %}
You can’t perform that action at this time.
0 commit comments