Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Check Dirty Git

A simple GitHub Action that fails if there are uncommitted changes in the git working directory.

Usage

- uses: cbeck88/check-dirty-git@v1

The action will fail if git status --porcelain returns any output.

Example Workflow

name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Test
        run: cargo test

      - name: Check for uncommitted changes
        uses: cbeck88/check-dirty-git@v1

License

MIT or Apache 2.0 at your option.

About

github action to check for dirty git repository and fail if CI (e.g. running tests) has resulted in a diff

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors