From 092d4501ccf0e43001f2cefb0860b1bcbb0f1485 Mon Sep 17 00:00:00 2001 From: Peter Somogyvari Date: Mon, 10 Jun 2024 09:54:57 -0700 Subject: [PATCH] ci(github): add workflow for DCO check Signed-off-by: Peter Somogyvari --- .github/workflows/dco.yaml | 19 +++++++++++++++++++ 1 file changed, 19 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 0000000000..ec9ecdd818 --- /dev/null +++ b/.github/workflows/dco.yaml @@ -0,0 +1,19 @@ +name: DCO + +on: [pull_request] + +jobs: + dco_check: + runs-on: ubuntu-22.04 + name: DCO + if: ${{ github.actor != 'dependabot[bot]' }} + steps: + - name: Get PR Commits + id: 'get-pr-commits' + uses: tim-actions/get-pr-commits@198af03565609bb4ed924d1260247b4881f09e7d + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: DCO Check + uses: tim-actions/dco@f2279e6e62d5a7d9115b0cb8e837b777b1b02e21 + with: + commits: ${{ steps.get-pr-commits.outputs.commits }} \ No newline at end of file