Skip to content

Commit

Permalink
ci: use default environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Apr 30, 2024
1 parent d267081 commit 323347c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ jobs:
# is able to compare the current branch with the base branch.
# Source: https://github.com/actions/checkout/#fetch-all-branches.
run: |
git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
towncrier check --compare-with origin/${BASE_BRANCH}
env:
BASE_BRANCH: ${{ github.base_ref }}
git fetch --no-tags origin "+refs/heads/${GITHUB_BASE_REF}:refs/remotes/origin/${GITHUB_BASE_REF}"
towncrier check --compare-with "origin/${GITHUB_BASE_REF}"
if: github.event_name == 'pull_request'
- name: Lint git commits
run: |
Expand Down

0 comments on commit 323347c

Please sign in to comment.