Skip to content

update-dependency

update-dependency #65

name: update-dependency
on:
workflow_dispatch:
inputs:
updated-dependency:
description: The dependency that was updated
required: true
jobs:
build:
if: github.ref == 'refs/heads/update-dependency'
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Install Ziti CI
uses: openziti/ziti-ci@v1
- name: Update Dependency
env:
gh_ci_key: ${{ secrets.GH_CI_KEY }}
ziti_ci_gpg_key: ${{ secrets.ZITI_CI_GPG_KEY }}
ziti_ci_gpg_key_id: ${{ secrets.ZITI_CI_GPG_KEY_ID }}
run: |
$(go env GOPATH)/bin/ziti-ci configure-git
$(go env GOPATH)/bin/ziti-ci update-go-dependency ${{ github.event.inputs.updated-dependency }}
- name: Build and Test
run: go test ./... --tags apitests
- name: Complete Dependency Update
run: $(go env GOPATH)/bin/ziti-ci complete-update-go-dependency