Skip to content

chore: bump sriovnet lib #14

chore: bump sriovnet lib

chore: bump sriovnet lib #14

Workflow file for this run

name: DCO check
on:
pull_request:
jobs:
dco:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Check DCO sign-off
run: |
base="${{ github.event.pull_request.base.sha }}"
failed=0
for sha in $(git rev-list --no-merges "$base"..HEAD); do
if ! git log -1 --format='%B' "$sha" | grep -qP '^Signed-off-by: .+ <.+>'; then
echo "::error::Commit $sha is missing a DCO Signed-off-by line"
failed=1
fi
done
if [ "$failed" -eq 1 ]; then
echo ""
echo "All commits must include a Signed-off-by line."
echo "Use 'git commit -s' to add it automatically."
exit 1
fi