Skip to content

fix: actions

fix: actions #102

Workflow file for this run

name: Commit Lint
on:
push:
permissions:
contents: read
jobs:
commit-lint:
name: Commit Lint
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set Up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
- name: Install Dependencies
run: bun ci
- name: Extract Commit Message (Push)
if: ${{ github.event_name == 'push' }}
run: |
git log -1 --pretty=%B > commit_message.txt
- name: Extract Commit Message (Pull Request)
if: ${{ github.event_name == 'pull_request' }}
run: |
git show -s --format=%B > commit_message.txt
- name: Lint
run: |
COMMIT_MESSAGE=$(cat commit_message.txt)
echo "$COMMIT_MESSAGE" | bun commitlint