From c50ea0ea5c7dc47f3653f0db24b029fcadb8f19a Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 7 Jun 2023 14:12:54 +0300 Subject: [PATCH] [#1] Add DCO check for forgejo runner Signed-off-by: Alex Vanin --- .dockerignore | 1 + .forgejo/workflows/dco.yml | 20 ++++++++++++++++++++ .github/workflows/dco.yml | 21 --------------------- 3 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 .forgejo/workflows/dco.yml delete mode 100644 .github/workflows/dco.yml diff --git a/.dockerignore b/.dockerignore index 73b336a..2f9d4b4 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,6 @@ .docker .github +.forgejo vendor tmp .secrets diff --git a/.forgejo/workflows/dco.yml b/.forgejo/workflows/dco.yml new file mode 100644 index 0000000..880addd --- /dev/null +++ b/.forgejo/workflows/dco.yml @@ -0,0 +1,20 @@ +on: [pull_request] + +jobs: + dco: + name: DCO + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '1.20' + + - name: Run commit format checker + uses: https://git.alexvan.in/alexvanin/dco-go@v1 + with: + from: dca6ff62 diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml deleted file mode 100644 index 40ed8fc..0000000 --- a/.github/workflows/dco.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: DCO check - -on: - pull_request: - branches: - - master - -jobs: - commits_check_job: - runs-on: ubuntu-latest - name: Commits Check - steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: DCO Check - uses: tim-actions/dco@master - with: - commits: ${{ steps.get-pr-commits.outputs.commits }}