mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
b919279eef
GitHub allows a "Squash and Merge" model which does an automatic rebase but commit GPG signature is from GitHub. So disable DCO checks only when merging. Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
24 lines
450 B
YAML
24 lines
450 B
YAML
# .github/workflows/dco.yml
|
|
name: DCO
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python 3.x
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Check DCO
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
pip3 install -U dco-check
|
|
dco-check
|