Skip to content

ErShakirAnsari/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

actions

GitHub Reusable Actions

Dirty Git Repo

This action checks if there are any uncommitted changes in a specified repository and outputs whether the repository is dirty or clean.

Usage

Example Workflow

name: Check for Changes Workflow

on:
  push:
    branches:
      - main

jobs:
  check-for-changes:
    runs-on: ubuntu-latest
    steps:
      - name: Check for Changes
        uses: ershakiransari/actions/dirty-git-repo@main
        id: check
        with:
          directory: '/path/to/git/repo'

      - name: Display Result
        run: |
          echo "Repository dirty: ${{ steps.check.outputs.dirty }}"

About

GitHub Reusable Actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published