github.com/openziti/transport@v0.1.5/.github/workflows/update-dependency.yml (about) 1 name: update-dependency 2 on: 3 workflow_dispatch: 4 inputs: 5 updated-dependency: 6 description: The dependency that was updated 7 required: true 8 9 jobs: 10 build: 11 if: github.ref == 'refs/heads/update-dependency' 12 runs-on: ubuntu-18.04 13 steps: 14 - name: Git Checkout 15 uses: actions/checkout@v2 16 with: 17 fetch-depth: 0 18 19 - name: Install Go 20 uses: actions/setup-go@v2 21 with: 22 go-version: '~1.18.0' 23 24 - name: Install Ziti CI 25 uses: netfoundry/ziti-ci@v1 26 27 - name: Update Dependency 28 env: 29 gh_ci_key: ${{ secrets.GH_CI_KEY }} 30 ziti_ci_gpg_key: ${{ secrets.ZITI_CI_GPG_KEY }} 31 ziti_ci_gpg_key_id: ${{ secrets.ZITI_CI_GPG_KEY_ID }} 32 run: | 33 $(go env GOPATH)/bin/ziti-ci configure-git 34 $(go env GOPATH)/bin/ziti-ci update-go-dependency ${{ github.event.inputs.updated-dependency }} 35 36 - name: Build and Test 37 run: go test ./... --tags apitests 38 39 - name: Complete Dependency Update 40 run: $(go env GOPATH)/bin/ziti-ci complete-update-go-dependency