ci: push, pull: debug logging
This commit is contained in:
parent
ef5aafd11c
commit
5e46044eb6
23
.github/workflows/pull.yml
vendored
23
.github/workflows/pull.yml
vendored
@ -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
|
||||||
|
|||||||
25
.github/workflows/push.yml
vendored
25
.github/workflows/push.yml
vendored
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user