Adding gnmi-1.6 Test files to fix conflict on PR #4842 (#4876) #2766
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Wiki | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| update-wiki: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| with: | |
| path: featureprofiles | |
| - name: Checkout wiki | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| with: | |
| repository: "openconfig/featureprofiles.wiki" | |
| path: featureprofiles.wiki | |
| - name: Set up Go | |
| uses: actions/setup-go@424fc82d43fa5a37540bae62709ddcc23d9520d4 | |
| with: | |
| go-version: 1.21.x | |
| - name: Cache | |
| uses: actions/cache@f4b3439a656ba812b8cb417d2d49f9c810103092 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: ${{ github.job }}-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | |
| - name: Build Wiki | |
| run: | | |
| pushd featureprofiles.wiki | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "Github Action" | |
| git rm -r testplans || true | |
| popd | |
| pushd featureprofiles | |
| go run tools/wikidoc/wikidoc.go -alsologtostderr -feature_root feature/ -output_root ../featureprofiles.wiki | |
| popd | |
| pushd featureprofiles.wiki | |
| git add . | |
| git diff --quiet HEAD || git commit -m "Update wiki from featureprofiles" && git push | |
| popd |