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 ea9bddb
Show file tree
Hide file tree
Showing 2 changed files with 10 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
5 changes: 4 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ jobs:
# 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 ea9bddb

Please sign in to comment.