From f36c6725b377b518302f67dae5b4cc321dd33f7a Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Wed, 5 Jun 2024 15:25:53 +0200 Subject: [PATCH] Add DCO check using GHA (#520) Signed-off-by: Marcin Owsiany --- .github/workflows/dco.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/dco.yaml diff --git a/.github/workflows/dco.yaml b/.github/workflows/dco.yaml new file mode 100644 index 00000000..5027b8f8 --- /dev/null +++ b/.github/workflows/dco.yaml @@ -0,0 +1,17 @@ +name: DCO +on: [pull_request] + +jobs: + commits_check_job: + runs-on: ubuntu-latest + name: DCO check + steps: + - name: Get PR Commits + id: 'get-pr-commits' + uses: tim-actions/get-pr-commits@v1.3.1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: DCO Check + uses: tim-actions/dco@v1.1.0 + with: + commits: ${{ steps.get-pr-commits.outputs.commits }}