From f10a02ba2b78096829f1935b6f9198803daa4601 Mon Sep 17 00:00:00 2001 From: Artem Senichev Date: Sun, 7 Jul 2024 13:05:07 +0300 Subject: [PATCH] ci: Add DCO commit check Signed-off-by: Artem Senichev --- .github/workflows/Check.yml | 2 +- .github/workflows/DCO.yml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/DCO.yml diff --git a/.github/workflows/Check.yml b/.github/workflows/Check.yml index f3b1e17..5611101 100644 --- a/.github/workflows/Check.yml +++ b/.github/workflows/Check.yml @@ -1,4 +1,4 @@ -name: Check +name: Build check on: push: diff --git a/.github/workflows/DCO.yml b/.github/workflows/DCO.yml new file mode 100644 index 0000000..e23fc2d --- /dev/null +++ b/.github/workflows/DCO.yml @@ -0,0 +1,24 @@ +name: DCO check + +on: + pull_request: + branches: [ "master" ] + +jobs: + + check: + + runs-on: ubuntu-latest + + steps: + + - name: Get PR Commits + id: 'get-pr-commits' + uses: tim-actions/get-pr-commits@master + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Check DCO + uses: tim-actions/dco@master + with: + commits: ${{ steps.get-pr-commits.outputs.commits }}