From 3f0f85a485cd0b0a5cc5fe25948505ac077275f5 Mon Sep 17 00:00:00 2001 From: nfel Date: Thu, 6 Aug 2026 17:05:58 +0330 Subject: [PATCH] ci(stage): add build-proto shared action (buf lint + buf build) --- .gitea/actions/build-proto/action.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/actions/build-proto/action.yml 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