Skip to content

Commit

Permalink
DCO check
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wieczorek <[email protected]>
  • Loading branch information
twz123 committed Jun 5, 2024
1 parent 72d7434 commit a5a0f90
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/dco.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: DCO

on:
pull_request:
branches:
- main

permissions: {}

jobs:
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- name: Checkout k0s
uses: actions/checkout@v4

- name: Prepare build environment
run: .github/workflows/prepare-build-env.sh

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Download DCO check script
env:
# https://github.com/christophebedard/dco-check/releases/tag/0.4.0
DCO_CHECK_VERSION: 30353d8deedf393cf55ba33355e71da7fdd095c7
run: >-
curl
--retry 5
--retry-connrefused
--proto '=https'
--tlsv1.2
-sSLfo dco_check.py
"https://raw.githubusercontent.com/christophebedard/dco-check/$DCO_CHECK_VERSION/dco_check/dco_check.py"
- name: Run DCO check
env:
# https://github.com/christophebedard/dco-check/releases/tag/0.4.0
DCO_CHECK_VERSION: 30353d8deedf393cf55ba33355e71da7fdd095c7
DCO_CHECK_VERBOSE: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 dco_check.py

0 comments on commit a5a0f90

Please sign in to comment.