github.com/Rookout/GoSDK@v0.1.48/.github/workflows/update-demo-rooks.yaml (about) 1 name: Update Go Demo Rooks 2 3 on: 4 workflow_dispatch: 5 push: 6 tags: 7 - 'v[0-9].[0-9]+.*' 8 9 jobs: 10 update_demo: 11 runs-on: ubuntu-latest 12 env: 13 GO_ROOK_VERSION: ${{ github.ref_name }} 14 steps: 15 - name: Checkout 16 uses: actions/checkout@v3 17 with: 18 path: main 19 - name: Checkout microservices-demo repo 20 uses: actions/checkout@v3 21 with: 22 repository: Rookout/microservices-demo 23 token: ${{ secrets.SONARIO_GITHUB_TOKEN }} 24 path: microservices-demo 25 - name: Checkout tutorial-go repo 26 uses: actions/checkout@v3 27 with: 28 repository: Rookout/tutorial-go 29 token: ${{ secrets.SONARIO_GITHUB_TOKEN }} 30 path: tutorial-go 31 - name: Update tutorial-go 32 working-directory: ./tutorial-go 33 run: | 34 go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}} 35 git config --global user.email "sonario@rookout.com" 36 git config --global user.name "sonariorobot" 37 git remote -v 38 git add -A 39 git status 40 git commit -m "Update GoSDK to: ${{env.GO_ROOK_VERSION}}" 41 git push 42 - name: Update microservices-demo 43 working-directory: ./microservices-demo 44 run: | 45 cd src/checkoutservice 46 go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}} 47 go mod tidy 48 cd ../../src/frontend && go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}} 49 go mod tidy 50 cd ../../src/productcatalogservice && go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}} 51 go mod tidy 52 cd ../../src/shippingservice && go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}} 53 go mod tidy 54 git config --global user.email "sonario@rookout.com" 55 git config --global user.name "sonariorobot" 56 git remote -v 57 git add -A 58 git status 59 git commit -m "Update GoSDK to: ${{env.GO_ROOK_VERSION}}" 60 git push