chore: bump sriovnet lib #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |