From c244c8216518ae8a465f04b0a173d13dbf1df93c Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Fri, 4 Oct 2024 14:22:51 +0300 Subject: [PATCH] Create reusable workflow for DCO Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/dco.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .forgejo/workflows/dco.yml diff --git a/.forgejo/workflows/dco.yml b/.forgejo/workflows/dco.yml new file mode 100644 index 0000000..5639b7d --- /dev/null +++ b/.forgejo/workflows/dco.yml @@ -0,0 +1,26 @@ +# yamllint disable rule:truthy + +name: DCO check +on: + workflow_call: + +jobs: + dco: + name: DCO + runs-on: docker + container: + image: node:22-bookworm + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '1.22' + + - name: Run commit format checker + uses: https://git.frostfs.info/TrueCloudLab/dco-go@v3 + with: + from: 'origin/${{ github.event.pull_request.base.ref }}'