Skip to content

Commit

Permalink
fix dco-check
Browse files Browse the repository at this point in the history
Signed-off-by: sudhanshu dasgupta <[email protected]>
  • Loading branch information
sudhanshutech committed Jan 21, 2024
1 parent 351e34a commit 5594e32
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/dco-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,4 @@ jobs:

- name: Check DCO
run: |
DCO_CHECK_RESULT=$(git log --format=%b ${{ github.event.before }}..${{ github.sha }} | grep -E -i '^(Signed-off-by|Co-authored-by):')
if [ -z "$DCO_CHECK_RESULT" ]; then
echo "DCO check failed. Every commit must be signed off."
exit 1
else
echo "DCO check passed. Every commit has been signed off."
fi
git log --format=%B -n 1 ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} | grep -i "Signed-off-by" > /dev/null || (echo "No DCO found in commit message" && exit 1)

0 comments on commit 5594e32

Please sign in to comment.