-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (58 loc) · 2 KB
/
update-demo-rooks.yaml
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
name: Update Go Demo Rooks
on:
workflow_dispatch:
push:
tags:
- 'v[0-9].[0-9]+.*'
jobs:
update_demo:
runs-on: ubuntu-latest
env:
GO_ROOK_VERSION: ${{ github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: main
- name: Checkout microservices-demo repo
uses: actions/checkout@v3
with:
repository: Rookout/microservices-demo
token: ${{ secrets.SONARIO_GITHUB_TOKEN }}
path: microservices-demo
- name: Checkout tutorial-go repo
uses: actions/checkout@v3
with:
repository: Rookout/tutorial-go
token: ${{ secrets.SONARIO_GITHUB_TOKEN }}
path: tutorial-go
- name: Update tutorial-go
working-directory: ./tutorial-go
run: |
go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}}
git config --global user.email "[email protected]"
git config --global user.name "sonariorobot"
git remote -v
git add -A
git status
git commit -m "Update GoSDK to: ${{env.GO_ROOK_VERSION}}"
git push
- name: Update microservices-demo
working-directory: ./microservices-demo
run: |
cd src/checkoutservice
go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}}
go mod tidy
cd ../../src/frontend && go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}}
go mod tidy
cd ../../src/productcatalogservice && go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}}
go mod tidy
cd ../../src/shippingservice && go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}}
go mod tidy
git config --global user.email "[email protected]"
git config --global user.name "sonariorobot"
git remote -v
git add -A
git status
git commit -m "Update GoSDK to: ${{env.GO_ROOK_VERSION}}"
git push