commit c244c8216518ae8a465f04b0a173d13dbf1df93c Author: Vitaliy Potyarkin Date: Fri Oct 4 14:22:51 2024 +0300 Create reusable workflow for DCO Signed-off-by: Vitaliy Potyarkin 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 }}'