Skip to content

Commit

Permalink
Fixed GitHub Actions to include repository head ref
Browse files Browse the repository at this point in the history
Necessary for Git Lint to lint commit messages properly since GitHub Actions doesn't provide this by default. Git Lint needs to this determine which commits are on the feature branch.

This includes setting the default branch to `master` since Git Lint assumes `main` by default.
  • Loading branch information
bkuhlmann committed Feb 21, 2025
1 parent 4d547b3 commit e9446ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.head_ref}}

- name: Git Default Branch
run: git config set init.defaultBranch master

- name: Ruby Setup
uses: ruby/setup-ruby@v1
Expand Down

0 comments on commit e9446ac

Please sign in to comment.