forked from k0sproject/k0s
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.15 KB
/
dco.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: DCO
on:
pull_request:
branches:
- main
- release-*
permissions:
contents: read
jobs:
check:
name: DCO check
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 --proto '=https' --tlsv1.2 --retry 5 --retry-all-errors -sSLfo dco_check.py \
'https://raw.githubusercontent.com/christophebedard/dco-check/${{ env.DCO_CHECK_VERSION }}/dco_check/dco_check.py'
- name: Run DCO check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DCO_CHECK_VERBOSE: "true"
DCO_CHECK_EXCLUDE_PATTERN: dependabot\[bot\]@users\.noreply\.github\.com
run: python3 dco_check.py