Skip to content

Commit 3d030c4

Browse files
authored
Merge pull request #202 from TechnologyEnhancedLearning/ci-dependabot-setup
chore(dependabot): oops
2 parents dd6cf66 + 88f9955 commit 3d030c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/reuseable-ci-checks.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,20 @@ jobs:
198198
fetch-depth: 0
199199

200200
- name: Check branch and run commitlint
201+
id: check_branch_and_run_commitlint
201202
run: |
202203
BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
203204
echo "Branch name: $BRANCH_NAME"
204205
if [[ "$BRANCH_NAME" =~ ^dependabot/ ]]; then
205-
echo "✅ Branch is a dependabot branch - skipping commitlint"
206+
echo "✅ Branch is a dependabot branch - skipping commitlint"
206207
echo "skip=true" >> $GITHUB_OUTPUT
207208
else
208209
echo "Regular branch - will run commitlint in next step"
209210
echo "skip=false" >> $GITHUB_OUTPUT
210211
fi
211212
212-
- name: Run commitlint actio
213-
if: steps.check-branch.outputs.skip != 'true'
213+
- name: Run commitlint action
214+
if: steps.check_branch_and_run_commitlint.outputs.skip != 'true'
214215
uses: wagoid/commitlint-github-action@v5
215216
with:
216217
configFile: .commitlintrc.json

0 commit comments

Comments
 (0)