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