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 56bc295
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ jobs:
with:
fetch-depth: 0

#- name: Print debug output
# - name: Print debug output
# env:
# GITHUB_CONTEXT: ${{ toJson(github) }}
# run: |
# echo

# echo "$GITHUB_SHA"
# echo "$GITHUB_REF"
# echo "$GITHUB_HEAD_REF"
Expand All @@ -100,10 +102,13 @@ jobs:

- name: Check commit messages
env:
BEFORE: ${{ github.event.push.before }}
BEFORE: ${{ github.event.before }}
# 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
20 changes: 19 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,29 @@ jobs:
with:
fetch-depth: 0

# - name: Print debug output
# env:
# GITHUB_CONTEXT: ${{ toJson(github) }}
# run: |
# echo

# 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
env:
BEFORE: ${{ github.event.before }}
# 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 56bc295

Please sign in to comment.