From 8dcd8c55aab6a19274837bee62aa1fb133e856f5 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Fri, 15 Dec 2023 04:51:22 -0600 Subject: [PATCH] workflows: invoke DCO check for PRs to this repo It's good general practice, and it also makes it easier to test changes to the workflows. Signed-off-by: Benjamin Gilbert --- .github/workflows/local-dco-check.yml | 15 +++++++++++++++ .github/workflows/local-dco-report.yml | 19 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/local-dco-check.yml create mode 100644 .github/workflows/local-dco-report.yml diff --git a/.github/workflows/local-dco-check.yml b/.github/workflows/local-dco-check.yml new file mode 100644 index 0000000..4e19dc6 --- /dev/null +++ b/.github/workflows/local-dco-check.yml @@ -0,0 +1,15 @@ +# DCO check for PRs to this repo + +name: DCO + +on: + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + check: + name: Organization + uses: ./.github/workflows/dco-check.yml diff --git a/.github/workflows/local-dco-report.yml b/.github/workflows/local-dco-report.yml new file mode 100644 index 0000000..bbeb152 --- /dev/null +++ b/.github/workflows/local-dco-report.yml @@ -0,0 +1,19 @@ +# DCO report for PRs to this repo + +name: DCO report + +on: + workflow_run: + workflows: ["DCO"] + types: + - completed + +permissions: + contents: none + +jobs: + comment: + name: Organization + uses: ./.github/workflows/dco-report.yml + secrets: + OPENSLIDE_BOT_TOKEN: ${{ secrets.OPENSLIDE_BOT_TOKEN }}