File tree Expand file tree Collapse file tree 2 files changed +40
-8
lines changed
Expand file tree Collapse file tree 2 files changed +40
-8
lines changed Original file line number Diff line number Diff line change 44 workflow_call :
55 inputs :
66 targets :
7- description : " List of repository names to deploy to"
87 required : true
98 type : string
109 branch :
11- description : " Branch to deploy to"
1210 required : true
1311 type : string
1412 script :
15- description : " Script to run"
1613 required : true
1714 type : string
1815 defaults :
19- description : " Defaults to use for each repository"
2016 required : false
2117 default : ' {}'
2218 type : string
2319 override :
24- description : " Override to use for each repository"
2520 required : false
2621 default : ' {}'
2722 type : string
2823 dry-run :
29- description : " Whether to run in dry run mode"
3024 required : false
3125 default : false
3226 type : boolean
@@ -155,9 +149,9 @@ jobs:
155149 "github": ${{ toJSON(fromJSON(steps.github.outputs.json)) }},
156150 "source": ${{ toJSON(fromJSON(steps.source.outputs.json)) }}
157151 }
158- SCRIPT : ${{ inputs.dry-run && 'env' || format('./{0}/scripts/{1}', github.repository, inputs. script) }}
152+ SCRIPT : ${{ inputs.script }}
159153 GITHUB_TOKEN : ${{ secrets.UCI_GITHUB_TOKEN }}
160- run : $ SCRIPT
154+ run : if [[ -f "$SOURCE/scripts/$ SCRIPT" ]]; then $SOURCE/scripts/$SCRIPT; else $SCRIPT; fi
161155 - id : after
162156 name : Check if push is needed
163157 working-directory : ${{ matrix.repository }}
Original file line number Diff line number Diff line change 1+ name : Run
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ targets :
7+ description : " List of repository names to deploy to"
8+ required : true
9+ branch :
10+ description : " Branch to deploy to"
11+ required : true
12+ script :
13+ description : " Script to run"
14+ required : true
15+ defaults :
16+ description : " Defaults to use for each repository"
17+ required : false
18+ default : ' {}'
19+ override :
20+ description : " Override to use for each repository"
21+ required : false
22+ default : ' {}'
23+ dry-run :
24+ description : " Whether to run in dry run mode"
25+ required : false
26+ default : ' false'
27+
28+ jobs :
29+ update-go :
30+ uses : ./.github/workflows/process.yml
31+ secrets : inherit
32+ with :
33+ targets : ${{ github.event.inputs.targets }}
34+ branch : ${{ github.event.inputs.branch }}
35+ script : ${{ github.event.inputs.script }}
36+ defaults : ${{ github.event.inputs.defaults }}
37+ override : ${{ github.event.inputs.override }}
38+ dry-run : ${{ github.event.inputs.dry-run == 'true' }}
You can’t perform that action at this time.
0 commit comments