github.com/Rookout/GoSDK@v0.1.48/.github/workflows/update-projects-rooks.yaml (about) 1 name: Update Go Projects Rooks 2 3 on: 4 workflow_dispatch: 5 push: 6 tags: 7 - 'v[0-9].[0-9]+.*' 8 9 jobs: 10 update_projects: 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 management repo 20 uses: actions/checkout@v3 21 with: 22 repository: Rookout/management 23 token: ${{ secrets.SONARIO_GITHUB_TOKEN }} 24 path: management 25 - name: Checkout data-pipelines repo 26 uses: actions/checkout@v3 27 with: 28 repository: Rookout/data-pipelines 29 token: ${{ secrets.SONARIO_GITHUB_TOKEN }} 30 path: data-pipelines 31 - name: Update management 32 working-directory: ./management 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 data-pipelines 43 working-directory: ./data-pipelines 44 run: | 45 go get -u github.com/Rookout/GoSDK@${{env.GO_ROOK_VERSION}} 46 git config --global user.email "sonario@rookout.com" 47 git config --global user.name "sonariorobot" 48 git remote -v 49 git add -A 50 git status 51 git commit -m "Update GoSDK to: ${{env.GO_ROOK_VERSION}}" 52 git push