Skip to content

Commit

Permalink
ci: debug (#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Jul 11, 2021
1 parent e846dfa commit 0e6d4bd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
with:
fetch-depth: 0

#- name: Print debug output
# env:
# GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Print debug output
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
# run: |
# echo "$GITHUB_SHA"
# echo "$GITHUB_REF"
Expand All @@ -104,6 +104,9 @@ jobs:
# for a PR this will be: origin/master..origin/$GITHUB_HEAD_REF
# for a push it will be: $BEFORE..
run: |
echo A"$BEFORE"B
echo C"${BEFORE}"D
echo E"${BEFORE:-origin/master}"F
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
# things to be cached/restored:
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,25 @@ jobs:
with:
fetch-depth: 0

- name: Print debug output
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
# run: |
# echo "$GITHUB_SHA"
# echo "$GITHUB_REF"
# echo "$GITHUB_HEAD_REF"
# echo "$GITHUB_BASE_REF"
# git log "$GITHUB_BASE_REF"..
# bin/commitlint "$GITHUB_BASE_REF"..

- name: Check commit messages
# for a PR this will be: master..origin/$GITHUB_HEAD_REF
# for a push it will be: master..
run: |
bin/commitlint origin/master..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
echo A"$BEFORE"B
echo C"${BEFORE}"D
echo E"${BEFORE:-origin/master}"F
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
# things to be cached/restored:

Expand Down

0 comments on commit 0e6d4bd

Please sign in to comment.