Skip to content

Commit

Permalink
chore: is it using the file it downloads?
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-smith-tcril committed Feb 19, 2025
1 parent 1d64636 commit d83c762
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ name: Lint Commit Messages
on:
- pull_request

defaults:
run:
shell: bash

jobs:
commitlint:
uses: openedx/.github/.github/workflows/commitlint.yml@master
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
# Fetch 100 commits. Should be enough?
fetch-depth: 100

- name: Download a local configuration file if needed
run: |
if [[ ! -f commitlint.config.mjs ]]; then
echo "Downloading the default commitlint config from edx_lint"
wget --no-verbose -O commitlint.config.mjs https://raw.githubusercontent.com/openedx/edx-lint/HEAD/edx_lint/files/commitlint.config.js
fi
ls
- name: Run commitlint
uses: wagoid/commitlint-github-action@v6

0 comments on commit d83c762

Please sign in to comment.