Move sort branches #212
Workflow file for this run
This file contains 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: Buf shadow sync | |
on: | |
push: # Any push, regardless if it contains proto changes or not | |
workflow_dispatch: # also allow manual trigger | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # fetch all branches and commits, so we can loop them | |
- run: git remote set-head origin --auto # set a HEAD for remote/origin, so buf sync can pickup the current default branch | |
- name: setup-go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.x' | |
- name: Install Local Buf | |
run: GOBIN="$HOME/go/bin" go install ./cmd/buf # use CLI version from the checked out code | |
- run: buf --version | |
- name: Login to testcustomer cluster | |
run: echo ${{ secrets.BUF_TESTINSTANCE_TOKEN }} | buf registry login testinstance.staging-tenants.buf.team --username bufbot --token-stdin | |
- name: Sync current branch | |
run: buf alpha repo sync --debug --timeout 0 --module proto:testinstance.staging-tenants.buf.team/bufbuild/buf-shadow-sync --create --create-visibility public |