Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/reuseable-ci-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,20 @@ jobs:
fetch-depth: 0

- name: Check branch and run commitlint
id: check_branch_and_run_commitlint
run: |
BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
echo "Branch name: $BRANCH_NAME"
if [[ "$BRANCH_NAME" =~ ^dependabot/ ]]; then
echo "✅ Branch is a dependabot branch - skipping commitlint"
echo "✅ Branch is a dependabot branch - skipping commitlint"
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "Regular branch - will run commitlint in next step"
echo "skip=false" >> $GITHUB_OUTPUT
fi

- name: Run commitlint actio
if: steps.check-branch.outputs.skip != 'true'
- name: Run commitlint action
if: steps.check_branch_and_run_commitlint.outputs.skip != 'true'
uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.json
Expand Down
Loading