🫖 diff-porcelain
Checks if the current branch is clean and errors with a custom message otherwise.
Usage
name: CI
on:
push:
branches:
- main
pull_request: {}
jobs:
check-diff:
name: Check diff
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Generate
run: make generate
- name: Diff porcelain
uses: mmontes11/diff-porcelain@v0.0.1
with:
message: Generated artifacts are not up to date. Run 'make generate' and commit the changes.