1
1
name : Bump Meshery, Meshery Extensions and Meshery Cloud
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ workflow_run :
5
+ workflows : [Publish Node.js Package]
6
+ types :
7
+ - completed
6
8
7
9
jobs :
10
+ versions-check :
11
+ runs-on : ubuntu-latest
12
+ outputs :
13
+ current : ${{ steps.current.outputs.VERSION }}
14
+ steps :
15
+ - name : Download Version
16
+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
17
+ with :
18
+ name : e2e-test-reporter
19
+ github-token : ${{ secrets.GH_ACCESS_TOKEN }}
20
+ run-id : ${{ github.event.workflow_run.id }}
21
+ - name : Retrieve Version
22
+ run : |
23
+ echo "VERSION=$(cat ./version/number)" >> $GITHUB_OUTPUT
24
+ id : current
8
25
bump-meshery :
9
26
runs-on : ubuntu-latest
27
+ needs : versions-check
10
28
steps :
11
29
- name : Checkout Meshery code
12
30
uses : actions/checkout@v4
@@ -21,30 +39,31 @@ jobs:
21
39
cache-dependency-path : ' **/package-lock.json'
22
40
- name : Make changes to pull request
23
41
working-directory : ui
24
- run : npm install @layer5/sistent@latest
42
+ run : npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
25
43
- name : Create Pull Request
26
44
id : cpr
27
45
uses : peter-evans/create-pull-request@v7
28
46
with :
29
47
token : ${{ secrets.RELEASEDRAFTER_PAT }}
30
- commit-message : Bump sistent ${{ github.event.release.tag_name }} dependencies
48
+ commit-message : Bump sistent v ${{ needs.versions-check.outputs.current }} dependencies
31
49
committer : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
32
50
author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
33
51
signoff : true
34
52
branch : bump-sistent-bot
35
53
delete-branch : true
36
- title : ' [Chore]: Bump ${{ github.event.release.name }}'
54
+ title : ' [Chore]: Bump v ${{ needs.versions-check.outputs.current }}'
37
55
add-paths : |
38
56
ui/package.json
39
57
ui/package-lock.json
40
58
body : |
41
- Update to Sistent ${{ github.event.release.tag_name }}
59
+ Update to Sistent v ${{ needs.versions-check.outputs.current }}
42
60
43
61
_This pull request has been auto-generated by [l5io](http://github.com/l5io)_
44
62
assignees : l5io
45
63
draft : false
46
64
bump-meshery-extensions :
47
65
runs-on : ubuntu-latest
66
+ needs : versions-check
48
67
steps :
49
68
- name : Checkout Meshery Extensions code
50
69
uses : actions/checkout@v4
@@ -59,30 +78,31 @@ jobs:
59
78
cache-dependency-path : ' **/package-lock.json'
60
79
- name : Make changes to pull request
61
80
working-directory : meshmap
62
- run : npm install @layer5/sistent@latest
81
+ run : npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
63
82
- name : Create Pull Request
64
83
id : cpr
65
84
uses : peter-evans/create-pull-request@v7
66
85
with :
67
86
token : ${{ secrets.RELEASEDRAFTER_PAT }}
68
- commit-message : Bump sistent ${{ github.event.release.tag_name }} dependencies
87
+ commit-message : Bump sistent v ${{ needs.versions-check.outputs.current }} dependencies
69
88
committer : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
70
89
author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
71
90
signoff : true
72
91
branch : bump-sistent-bot
73
92
delete-branch : true
74
- title : ' [Chore]: Bump ${{ github.event.release.name }}'
93
+ title : ' [Chore]: Bump v ${{needs.versions-check.outputs.current }}'
75
94
add-paths : |
76
95
meshmap/package.json
77
96
meshmap/package-lock.json
78
97
body : |
79
- Update to Sistent ${{ github.event.release.tag_name }}
98
+ Update to Sistent v ${{ needs.versions-check.outputs.current }}
80
99
81
100
_This pull request has been auto-generated by [l5io](http://github.com/l5io)_
82
101
assignees : l5io
83
102
draft : false
84
103
bump-meshery-cloud :
85
104
runs-on : ubuntu-latest
105
+ needs : versions-check
86
106
steps :
87
107
- name : Checkout Meshery Extensions code
88
108
uses : actions/checkout@v4
@@ -97,24 +117,24 @@ jobs:
97
117
cache-dependency-path : ' **/package-lock.json'
98
118
- name : Make changes to pull request
99
119
working-directory : ui
100
- run : npm install @layer5/sistent@latest
120
+ run : npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
101
121
- name : Create Pull Request
102
122
id : cpr
103
123
uses : peter-evans/create-pull-request@v7
104
124
with :
105
125
token : ${{ secrets.RELEASEDRAFTER_PAT }}
106
- commit-message : Bump sistent ${{ github.event.release.tag_name }} dependencies
126
+ commit-message : Bump sistent v ${{ needs.versions-check.outputs.current }} dependencies
107
127
committer : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
108
128
author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
109
129
signoff : true
110
130
branch : bump-sistent-bot
111
131
delete-branch : true
112
- title : ' [Chore]: Bump ${{ github.event.release.name }}'
132
+ title : ' [Chore]: Bump v ${{ needs.versions-check.outputs.current }}'
113
133
add-paths : |
114
134
ui/package.json
115
135
ui/package-lock.json
116
136
body : |
117
- Update to Sistent ${{ github.event.release.tag_name }}
137
+ Update to Sistent v ${{ needs.versions-check.outputs.current }}
118
138
119
139
_This pull request has been auto-generated by [l5io](http://github.com/l5io)_
120
140
assignees : l5io
0 commit comments