Skip to content

ci: adding Conventional Commits linting workflow #2

ci: adding Conventional Commits linting workflow

ci: adding Conventional Commits linting workflow #2

Workflow file for this run

name: Git History
on: pull_request
env:
# Forcing Earthly to use colours, to make reading output easier.
FORCE_COLOR: 1
jobs:
clean:
name: Clean
runs-on: ubuntu-latest
steps:
- name: Download Earthly v0.8.12.
run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
- name: Checkout code.
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Check clean Git history.
run: earthly --ci +check-clean-git-history --from_reference "origin/${{ github.base_ref }}"