File tree 1 file changed +24
-7
lines changed
1 file changed +24
-7
lines changed Original file line number Diff line number Diff line change
1
+
1
2
name : Cli-core Build
2
3
3
4
on :
4
- repository_dispatch :
5
- types : [ releaseCliCore ]
6
- push :
7
- branches : [ test_branch_actions ]
5
+ # repository_dispatch:
6
+ # types: [ releaseCliCore ]
7
+ # push:
8
+ # branches: [ test_branch_actions ]
8
9
workflow_dispatch :
9
- env :
10
- CHANGE_LOG : ' '
10
+ inputs :
11
+ cliBranch :
12
+ description : ' Run workflow in the branch'
13
+ default : main
11
14
12
15
jobs :
13
16
build :
30
33
needs : [build]
31
34
outputs :
32
35
changeLog : ${{ steps.updateFolder.outputs.changeLog }}
36
+ versionType : ${{ steps.updateFolder.outputs.versionType }}
33
37
steps :
34
38
- run : mkdir -p ~/oai_definitions/json
35
39
- run : cd ~/oai_definitions
53
57
cp -R ~/oai_definitions/CHANGES.md OAI_CHANGES.md
54
58
source scripts/updateApiDefinitions.sh
55
59
echo "::set-output name=changeLog::$changeLog"
60
+ echo "::set-output name=versionType::$versionType"
56
61
release :
57
62
runs-on : ubuntu-latest
58
63
needs : [updateAPIDefinitions]
94
99
TAG_NAME : ${{steps.test.outputs.TAG_NAME}}
95
100
with :
96
101
is_append_body : true
97
- body : ${{needs.updateAPIDefinitions.outputs.changeLog}}
102
+ body : " ${{needs.updateAPIDefinitions.outputs.changeLog}}"
103
+ triggerCliWorkflow :
104
+ runs-on : ubuntu-latest
105
+ needs : [ updateAPIDefinitions, updateRelease ]
106
+ steps :
107
+ - name : Invoke CLI workflow with changelog
108
+ uses : benc-uk/workflow-dispatch@v1
109
+ with :
110
+ workflow : Cli Publish
111
+ token : ${{ secrets.REPO_ACCESS_TOKEN }}
112
+ repo : LakshmiRavali/twilio-cli
113
+ ref : " ${{ github.event.inputs.cliBranch }}"
114
+ inputs : ' { "changeLog": ${{ toJSON(needs.updateAPIDefinitions.outputs.changeLog) }}, "versionType": "${{needs.updateAPIDefinitions.outputs.versionType}}" }'
You can’t perform that action at this time.
0 commit comments