ci: push, pull: debug logging
This commit is contained in:
parent
64ae4c25fa
commit
0023982560
10
.github/workflows/pull.yml
vendored
10
.github/workflows/pull.yml
vendored
@ -91,15 +91,15 @@ jobs:
|
||||
RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
|
||||
|
||||
echo "debug: last 10 commits:"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -10)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' -10)"
|
||||
echo "debug: origin/master:"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 origin/master)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' -1 origin/master)"
|
||||
echo "debug: BEFORE=$BEFORE"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 $BEFORE)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' -1 $BEFORE)"
|
||||
echo "debug: GITHUB_HEAD_REF=$GITHUB_HEAD_REF"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 $GITHUB_HEAD_REF)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' -1 $GITHUB_HEAD_REF)"
|
||||
echo "debug: RANGE(commits to check)=$RANGE"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' --abbrev-commit --date=relative --date-order $RANGE)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' --abbrev-commit --date=relative --date-order $RANGE)"
|
||||
|
||||
if git rev-list --quiet $RANGE
|
||||
then tools/commitlint $RANGE
|
||||
|
||||
10
.github/workflows/push.yml
vendored
10
.github/workflows/push.yml
vendored
@ -94,15 +94,15 @@ jobs:
|
||||
RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:-}
|
||||
|
||||
echo "debug: last 10 commits:"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -10)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' -10)"
|
||||
echo "debug: origin/master:"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 origin/master)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' -1 origin/master)"
|
||||
echo "debug: BEFORE=$BEFORE"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 $BEFORE)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' -1 $BEFORE)"
|
||||
echo "debug: GITHUB_HEAD_REF=$GITHUB_HEAD_REF"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 $GITHUB_HEAD_REF)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' -1 $GITHUB_HEAD_REF)"
|
||||
echo "debug: RANGE(commits to check)=$RANGE"
|
||||
echo "debug: $(git log --format='%h -%d %s (%an, %ci)' --abbrev-commit --date=relative --date-order $RANGE)"
|
||||
echo "$(git log --format='%h -%d %s (%an, %ci)' --abbrev-commit --date=relative --date-order $RANGE)"
|
||||
|
||||
if git rev-list --quiet $RANGE
|
||||
then tools/commitlint $RANGE
|
||||
|
||||
Loading…
Reference in New Issue
Block a user