Skip to content

Commit

Permalink
fix_: GITHUB_HEAD_REF
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Aug 27, 2024
1 parent 94170ea commit 26a4f13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ jobs:

- uses: actions/checkout@v4
with:
ref: ${{ env.GITHUB_BASE_REF }}
ref: ${{ env.GITHUB_HEAD_REF }}
fetch-tags: true

- name: Check commit message
id: check_commit_message
run: |
echo "GITHUB_BASE_REF: ${GITHUB_BASE_REF}"
echo "GITHUB_HEAD_REF: ${GITHUB_HEAD_REF}"
git fetch --tags --quiet
git checkout origin/${GITHUB_BASE_REF}
git checkout origin/${GITHUB_HEAD_REF}
echo $(git branch --show-current)
echo $(git rev-parse HEAD)
Expand Down

0 comments on commit 26a4f13

Please sign in to comment.