github.com/whoyao/protocol@v0.0.0-20230519045905-2d8ace718ca5/.github/workflows/generate.yaml (about) 1 name: Generate 2 3 on: 4 workflow_dispatch: 5 push: 6 branches-ignore: [ main ] 7 8 jobs: 9 generate: 10 runs-on: ubuntu-latest 11 steps: 12 - uses: actions/checkout@v3 13 14 - name: Install Protoc 15 uses: arduino/setup-protoc@v1 16 with: 17 repo-token: ${{ secrets.GITHUB_TOKEN }} 18 19 - name: Set up Go 20 uses: actions/setup-go@v4 21 with: 22 go-version: '>=1.18' 23 24 - name: Go mod tidy 25 run: go mod tidy 26 27 - name: Install generators 28 uses: magefile/mage-action@v2 29 with: 30 version: latest 31 args: bootstrap 32 33 - name: Mage Test 34 uses: magefile/mage-action@v2 35 with: 36 version: latest 37 args: test 38 39 - name: Generate Protobuf 40 uses: magefile/mage-action@v2 41 with: 42 version: latest 43 args: proto 44 45 - name: Add changes 46 uses: EndBug/add-and-commit@v9 47 with: 48 add: livekit 49 default_author: github_actions 50 message: generated protobuf