Skip to content

Fix docker build error #68

Fix docker build error

Fix docker build error #68

Workflow file for this run

name: Validate commit message
on: [pull_request]
jobs:
commit-lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setting up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.5.0
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Print versions
run: |
git --version
node --version
pnpm --version
npx commitlint --version
- name: Install commitlint
run: |
pnpm install
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npx commitlint --from HEAD~1 --to HEAD --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose