{"id":19584511,"url":"https://github.com/unicornglobal/has-changes-action","last_synced_at":"2025-10-15T12:09:08.249Z","repository":{"id":65155297,"uuid":"241833561","full_name":"UnicornGlobal/has-changes-action","owner":"UnicornGlobal","description":"GitHub action to check for uncommitted code changes","archived":false,"fork":false,"pushed_at":"2022-11-24T12:11:54.000Z","size":11,"stargazers_count":33,"open_issues_count":4,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T07:02:39.622Z","etag":null,"topics":["actions","docker","workflows"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UnicornGlobal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-20T08:40:38.000Z","updated_at":"2025-05-19T23:56:22.000Z","dependencies_parsed_at":"2023-01-04T12:32:30.723Z","dependency_job_id":null,"html_url":"https://github.com/UnicornGlobal/has-changes-action","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.12,"last_synced_commit":"ea00e6f831a9e785271645729fa251907b314707"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/UnicornGlobal/has-changes-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicornGlobal%2Fhas-changes-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicornGlobal%2Fhas-changes-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicornGlobal%2Fhas-changes-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicornGlobal%2Fhas-changes-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnicornGlobal","download_url":"https://codeload.github.com/UnicornGlobal/has-changes-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnicornGlobal%2Fhas-changes-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263784844,"owners_count":23510984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","docker","workflows"],"created_at":"2024-11-11T07:48:47.421Z","updated_at":"2025-10-15T12:09:03.199Z","avatar_url":"https://github.com/UnicornGlobal.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Has Changes\n\nGitHub action for checking if the repo is dirty (has uncommitted changes).\n\n## Why?\n\nThis is useful for things like checking if you need to open a pull\nrequest for any changes that may be introduced through another action.\n\n## How?\n\nAdd a step in a job after any steps whose code changes you want to check.\n\nYou will then be able to check the status in subsequent steps.\n\nYou do this by checking if `changed` is equal to `1`.\n\nThe value will be 0 if no code has been changed by any previous steps.\n\n## Example\n\n```yaml\nname: Has Changes\njobs:\n  has-changes:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v2\n      with:\n        ref: ${{ github.head_ref }}\n    - name: Make changes\n      run: touch change.temp\n    # This step will evaluate the repo status and report the change\n    - name: Check if there are changes\n      id: changes\n      uses: UnicornGlobal/has-changes-action@v1.0.11\n    # You can now access a variable indicating if there have been changes\n    - name: Process changes\n      if: steps.changes.outputs.changed == 1\n      run: echo \"Changes exist\"\n```\n\nThe example shows that adding a step to check the status will expose the\nstatus on the `${{ steps.changes.outputs.changed }}` variable.\n\nThe `steps.changes` is defined by the `id: changes`. If you change the id\nvalue then the step name must change too (as it references the id).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicornglobal%2Fhas-changes-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicornglobal%2Fhas-changes-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicornglobal%2Fhas-changes-action/lists"}