Skip to content

An Action which runs a given command and fails if it changes anything

License

Notifications You must be signed in to change notification settings

nickcharlton/diff-check

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

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diff-check

An Action which runs a command and fails if it changes anything.

It's ideal for catching situations where tools like Dependabot might not bump other dependencies, like with tools like Appraisal's gemfiles or native iOS dependencies (ios/Podfile.lock) when updating npm dependencies on React Native.

The results are reported with a failed action run, and presented in the job summary.

Example

Screenshot of the job summary

.github/workflows/diff-check.yml:

---
name: diff-check
on: [push]

jobs:
  demo:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: nickcharlton/diff-check@main
        with:
          command: echo "hello world" >> README.md

About

An Action which runs a given command and fails if it changes anything

Resources

License

Stars

Watchers

Forks

Packages

No packages published