@@ -18,35 +18,45 @@ jobs:
1818 runs-on : ubuntu-latest
1919
2020 steps :
21- - name : Package bump layer
22- uses : InjectiveLabs/github-fe/actions/package-bump@master
21+ - name : Create GitHub App token
22+ id : app-token
23+ uses : actions/create-github-app-token@v1
2324 with :
24- gh_token : ${{ secrets.LAYER_GH_TOKEN }}
25- repository_url : injectiveLabs/injective-ui
26- repository_branch : master
25+ app-id : ${{ vars.RELEASE_APP_ID }}
26+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
27+ owner : InjectiveLabs
28+ repositories : injective-ui
29+ permission-contents : write
30+ permission-pull-requests : write
2731
28- package-bump-layer-tc :
29- name : ' Package bump layer TC'
30- runs-on : ubuntu-latest
31-
32- steps :
33- - name : Package bump layer TC
32+ - name : Package bump layer
3433 uses : InjectiveLabs/github-fe/actions/package-bump@master
3534 with :
36- gh_token : ${{ secrets.LAYER_GH_TOKEN }}
35+ gh_token : ${{ steps.app-token.outputs.token }}
3736 repository_url : injectiveLabs/injective-ui
38- repository_branch : feat/tc-layer
37+ repository_branch : master
3938
4039 package-bump-hub :
4140 name : ' Package bump hub'
4241 runs-on : ubuntu-latest
4342 needs : package-bump-layer
4443
4544 steps :
45+ - name : Create GitHub App token
46+ id : app-token
47+ uses : actions/create-github-app-token@v1
48+ with :
49+ app-id : ${{ vars.RELEASE_APP_ID }}
50+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
51+ owner : InjectiveLabs
52+ repositories : injective-hub
53+ permission-contents : write
54+ permission-pull-requests : write
55+
4656 - name : Package bump Hub
4757 uses : InjectiveLabs/github-fe/actions/package-bump@master
4858 with :
49- gh_token : ${{ secrets.HUB_GH_TOKEN }}
59+ gh_token : ${{ steps.app-token.outputs.token }}
5060 repository_url : injectiveLabs/injective-hub
5161 repository_branch : dev
5262
@@ -56,10 +66,21 @@ jobs:
5666 needs : package-bump-layer
5767
5868 steps :
69+ - name : Create GitHub App token
70+ id : app-token
71+ uses : actions/create-github-app-token@v1
72+ with :
73+ app-id : ${{ vars.RELEASE_APP_ID }}
74+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
75+ owner : InjectiveLabs
76+ repositories : injective-helix
77+ permission-contents : write
78+ permission-pull-requests : write
79+
5980 - name : Package bump Helix
6081 uses : InjectiveLabs/github-fe/actions/package-bump@master
6182 with :
62- gh_token : ${{ secrets.HELIX_GH_TOKEN }}
83+ gh_token : ${{ steps.app-token.outputs.token }}
6384 repository_url : injectiveLabs/injective-helix
6485 repository_branch : dev
6586
@@ -69,10 +90,21 @@ jobs:
6990 needs : package-bump-layer
7091
7192 steps :
93+ - name : Create GitHub App token
94+ id : app-token
95+ uses : actions/create-github-app-token@v1
96+ with :
97+ app-id : ${{ vars.RELEASE_APP_ID }}
98+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
99+ owner : InjectiveLabs
100+ repositories : injective-explorer
101+ permission-contents : write
102+ permission-pull-requests : write
103+
72104 - name : Package bump Explorer
73105 uses : InjectiveLabs/github-fe/actions/package-bump@master
74106 with :
75- gh_token : ${{ secrets.EXPLORER_GH_TOKEN }}
107+ gh_token : ${{ steps.app-token.outputs.token }}
76108 repository_url : injectiveLabs/injective-explorer
77109 repository_branch : dev
78110
@@ -82,36 +114,66 @@ jobs:
82114 needs : package-bump-layer
83115
84116 steps :
117+ - name : Create GitHub App token
118+ id : app-token
119+ uses : actions/create-github-app-token@v1
120+ with :
121+ app-id : ${{ vars.RELEASE_APP_ID }}
122+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
123+ owner : InjectiveLabs
124+ repositories : injective-trading-ui
125+ permission-contents : write
126+ permission-pull-requests : write
127+
85128 - name : Package bump Trading UI
86129 uses : InjectiveLabs/github-fe/actions/package-bump@master
87130 with :
88- gh_token : ${{ secrets.TRADING_UI_GH_TOKEN }}
131+ gh_token : ${{ steps.app-token.outputs.token }}
89132 repository_url : injectiveLabs/injective-trading-ui
90133 repository_branch : dev
91134
92- package-bump-mito :
93- name : ' Package bump Mito'
94- runs-on : ubuntu-latest
95- needs : package-bump-layer
96-
97- steps :
98- - name : Package bump Mito
99- uses : InjectiveLabs/github-fe/actions/package-bump@master
100- with :
101- gh_token : ${{ secrets.MITO_GH_TOKEN }}
102- repository_url : mitoFinance/mito-ui
103- repository_branch : dev
135+ # package-bump-mito:
136+ # name: 'Package bump Mito'
137+ # runs-on: ubuntu-latest
138+ # needs: package-bump-layer
139+
140+ # steps:
141+ # - name: Create GitHub App token
142+ # id: app-token
143+ # uses: actions/create-github-app-token@v1
144+ # with:
145+ # app-id: ${{ vars.RELEASE_APP_ID }}
146+ # private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
147+ # owner: mitoFinance
148+
149+ # - name: Package bump Mito
150+ # uses: InjectiveLabs/github-fe/actions/package-bump@master
151+ # with:
152+ # gh_token: ${{ steps.app-token.outputs.token }}
153+ # repository_url: mitoFinance/mito-ui
154+ # repository_branch: dev
104155
105156 package-bump-ui-api :
106157 name : ' Package bump UI API'
107158 runs-on : ubuntu-latest
108159 needs : package-bump-layer
109160
110161 steps :
162+ - name : Create GitHub App token
163+ id : app-token
164+ uses : actions/create-github-app-token@v1
165+ with :
166+ app-id : ${{ vars.RELEASE_APP_ID }}
167+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
168+ owner : InjectiveLabs
169+ repositories : injective-ui-api
170+ permission-contents : write
171+ permission-pull-requests : write
172+
111173 - name : Package bump UI API
112174 uses : InjectiveLabs/github-fe/actions/package-bump@master
113175 with :
114- gh_token : ${{ secrets.UI_API_GH_TOKEN }}
176+ gh_token : ${{ steps.app-token.outputs.token }}
115177 repository_url : injectiveLabs/injective-ui-api
116178 repository_branch : staging
117179
@@ -121,10 +183,21 @@ jobs:
121183 needs : package-bump-layer
122184
123185 steps :
186+ - name : Create GitHub App token
187+ id : app-token
188+ uses : actions/create-github-app-token@v1
189+ with :
190+ app-id : ${{ vars.RELEASE_APP_ID }}
191+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
192+ owner : InjectiveLabs
193+ repositories : injective-admin-ui
194+ permission-contents : write
195+ permission-pull-requests : write
196+
124197 - name : Package bump Admin UI
125198 uses : InjectiveLabs/github-fe/actions/package-bump@master
126199 with :
127- gh_token : ${{ secrets.ADMIN_UI_GH_TOKEN }}
200+ gh_token : ${{ steps.app-token.outputs.token }}
128201 repository_url : InjectiveLabs/injective-admin-ui
129202 repository_branch : dev
130203
@@ -134,10 +207,21 @@ jobs:
134207 needs : package-bump-layer
135208
136209 steps :
210+ - name : Create GitHub App token
211+ id : app-token
212+ uses : actions/create-github-app-token@v1
213+ with :
214+ app-id : ${{ vars.RELEASE_APP_ID }}
215+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
216+ owner : InjectiveLabs
217+ repositories : injective-do-ui
218+ permission-contents : write
219+ permission-pull-requests : write
220+
137221 - name : Package bump DO UI
138222 uses : InjectiveLabs/github-fe/actions/package-bump@master
139223 with :
140- gh_token : ${{ secrets.DO_UI_GH_TOKEN }}
224+ gh_token : ${{ steps.app-token.outputs.token }}
141225 repository_url : injectiveLabs/injective-do-ui
142226 repository_branch : master
143227
@@ -147,9 +231,20 @@ jobs:
147231 needs : package-bump-layer-tc
148232
149233 steps :
234+ - name : Create GitHub App token
235+ id : app-token
236+ uses : actions/create-github-app-token@v1
237+ with :
238+ app-id : ${{ vars.RELEASE_APP_ID }}
239+ private-key : ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
240+ owner : InjectiveLabs
241+ repositories : injective-true-current
242+ permission-contents : write
243+ permission-pull-requests : write
244+
150245 - name : Package bump True Current
151246 uses : InjectiveLabs/github-fe/actions/package-bump@master
152247 with :
153- gh_token : ${{ secrets.TRUE_CURRENT_GH_TOKEN }}
248+ gh_token : ${{ steps.app-token.outputs.token }}
154249 repository_url : injectiveLabs/injective-true-current
155250 repository_branch : dev
0 commit comments