diff --git a/.gitea/actions/build-proto/action.yml b/.gitea/actions/build-proto/action.yml new file mode 100644 index 0000000..eea419f --- /dev/null +++ b/.gitea/actions/build-proto/action.yml @@ -0,0 +1,27 @@ +name: Build Proto +description: Install buf CLI, run buf lint and buf build +inputs: + buf_ref: + description: Git ref of actions/buf-bin to checkout + required: false + default: "main" +runs: + using: composite + steps: + - name: Checkout Buf CLI + uses: https://git.darano.ir/actions/checkout@v5 + with: + repository: actions/buf-bin + ref: ${{ inputs.buf_ref }} + path: buf-bin + - name: Setup Buf CLI + shell: bash + run: | + cp buf-bin/buf /usr/local/bin/buf + chmod +x /usr/local/bin/buf + - name: Lint + shell: bash + run: buf lint + - name: Build + shell: bash + run: buf build