ci: push, pull: debug logging

This commit is contained in:
Simon Michael 2022-04-20 22:51:32 -10:00
parent ef5aafd11c
commit 5e46044eb6
2 changed files with 17 additions and 31 deletions

View File

@ -90,21 +90,14 @@ jobs:
run: | run: |
RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
echo debug: BEFORE: $BEFORE echo "debug: BEFORE=$BEFORE"
echo debug: git log --format='%h -%d %s (%an, %cr)' -1 $BEFORE echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 $BEFORE)"
echo debug: $(git log --format='%h -%d %s (%an, %cr)' -1 $BEFORE) echo "debug: origin/master="
echo debug: origin/master: echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 origin/master)"
echo debug: git log --format='%h -%d %s (%an, %cr)' -1 origin/master echo "debug: GITHUB_HEAD_REF=$GITHUB_HEAD_REF"
echo debug: $(git log --format='%h -%d %s (%an, %cr)' -1 origin/master) echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 $GITHUB_HEAD_REF)"
echo debug: GITHUB_HEAD_REF: $GITHUB_HEAD_REF echo "debug: RANGE(commits to check)=$RANGE"
echo debug: git log --format='%h -%d %s (%an, %cr)' -1 $GITHUB_HEAD_REF echo "debug: $(git log --format='%h -%d %s (%an, %ci)' --abbrev-commit --date=relative --date-order $RANGE)"
echo debug: $(git log --format='%h -%d %s (%an, %cr)' -1 $GITHUB_HEAD_REF)
echo debug: origin/GITHUB_HEAD_REF: origin/$GITHUB_HEAD_REF
echo debug: git log --format='%h -%d %s (%an, %cr)' -1 origin/$GITHUB_HEAD_REF
echo debug: $(git log --format='%h -%d %s (%an, %cr)' -1 origin/$GITHUB_HEAD_REF)
echo "debug: RANGE (commits being checked): $RANGE"
echo debug: git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE
echo debug: $(git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE)
if git rev-list --quiet $RANGE if git rev-list --quiet $RANGE
then tools/commitlint $RANGE then tools/commitlint $RANGE

View File

@ -91,23 +91,16 @@ jobs:
# NUM: 5 # NUM: 5
shell: bash shell: bash
run: | run: |
RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:-}
echo debug: BEFORE: $BEFORE echo "debug: BEFORE=$BEFORE"
echo debug: git log --format='%h -%d %s (%an, %cr)' -1 $BEFORE echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 $BEFORE)"
echo debug: $(git log --format='%h -%d %s (%an, %cr)' -1 $BEFORE) echo "debug: origin/master="
echo debug: origin/master: echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 origin/master)"
echo debug: git log --format='%h -%d %s (%an, %cr)' -1 origin/master echo "debug: GITHUB_HEAD_REF=$GITHUB_HEAD_REF"
echo debug: $(git log --format='%h -%d %s (%an, %cr)' -1 origin/master) echo "debug: $(git log --format='%h -%d %s (%an, %ci)' -1 $GITHUB_HEAD_REF)"
echo debug: GITHUB_HEAD_REF: $GITHUB_HEAD_REF echo "debug: RANGE(commits to check)=$RANGE"
echo debug: git log --format='%h -%d %s (%an, %cr)' -1 $GITHUB_HEAD_REF echo "debug: $(git log --format='%h -%d %s (%an, %ci)' --abbrev-commit --date=relative --date-order $RANGE)"
echo debug: $(git log --format='%h -%d %s (%an, %cr)' -1 $GITHUB_HEAD_REF)
echo debug: origin/GITHUB_HEAD_REF: origin/$GITHUB_HEAD_REF
echo debug: git log --format='%h -%d %s (%an, %cr)' -1 origin/$GITHUB_HEAD_REF
echo debug: $(git log --format='%h -%d %s (%an, %cr)' -1 origin/$GITHUB_HEAD_REF)
echo "debug: RANGE (commits being checked): $RANGE"
echo debug: git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE
echo debug: $(git log --format='%h -%d %s (%an, %cr)' --abbrev-commit --date=relative --date-order $RANGE)
if git rev-list --quiet $RANGE if git rev-list --quiet $RANGE
then tools/commitlint $RANGE then tools/commitlint $RANGE