{"id":16935689,"url":"https://github.com/knu/changed-files","last_synced_at":"2026-05-08T18:35:47.705Z","repository":{"id":225310033,"uuid":"765630384","full_name":"knu/changed-files","owner":"knu","description":"Changed Files for GitHub Actions","archived":false,"fork":false,"pushed_at":"2024-03-19T08:57:15.000Z","size":5,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T05:12:27.663Z","etag":null,"topics":["actions","git","github","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/list-changed-files","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-01T09:59:02.000Z","updated_at":"2025-01-01T13:16:59.000Z","dependencies_parsed_at":"2024-03-01T11:27:33.435Z","dependency_job_id":"16d66751-3a39-44e2-891a-b09b818f956f","html_url":"https://github.com/knu/changed-files","commit_stats":null,"previous_names":["knu/changed-files"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/knu/changed-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fchanged-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fchanged-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fchanged-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fchanged-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/changed-files/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fchanged-files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32792415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","git","github","github-actions"],"created_at":"2024-10-13T20:55:08.438Z","updated_at":"2026-05-08T18:35:47.686Z","avatar_url":"https://github.com/knu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Changed Files for GitHub Actions\n\nThis GitHub Action returns a list of files changed by a pull request or a push, and a list of files matching a given pattern list.\n\n## Usage\n\n``` yaml\non:\n  push:\n\n  pull_request:\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n    steps:\n      - id: changed-files\n        name: Check changed files\n        uses: knu/changed-files@v1\n        with:\n          paths: |\n            **/*.{json,js,ts,[cm]js}\n            !**/*.d.ts\n      - name: Show changed files\n        run: |\n          echo \"Changed files:\"\n          echo \"${{ steps.changed-files.outputs.changed_files }}\" | sed 's/^/  /'\n          echo \"Matched files:\"\n          echo \"${{ steps.changed-files.outputs.matched_files }}\" | sed 's/^/  /'\n      - name: Run if any file matching paths is changed\n        if: steps.changed-files.outputs.matched_files != ''\n        run: |\n          echo \"Do something\"\n      - name: Run if a specific file is changed\n        if: contains(fromJson(steps.changed-files.outputs.changed_files_json), 'package.json')\n        run: |\n          echo \"Do something\"\n```\n\n## Inputs\n\n- `paths` (string)\n\n  A list of path patterns to match against changed files in the `.gitignore` syntax.\n\n  Matching is performed using the [ignore](https://github.com/kaelzhang/node-ignore#readme) library.\n\n- `token` (string)\n\n  The GitHub token to use for fetching the list of changed files.\n\n  Default: `${{ github.token }}`\n\n## Outputs\n\n- `changed_files`\n\n  A multi-line string containing the list of changed files.\n\n- `changed_files_json`\n\n  A JSON string containing the list of changed files.\n\n- `matched_files`\n\n  A multi-line string containing the list of changed files matching `paths` patterns.  Empty (`\"\"`) if `paths` is not given.\n\n- `matched_files_json`\n\n  A JSON string containing the list of changed files matching `paths` patterns.  Empty (`\"[]\"`) if `paths` is not given.\n\n## Author\n\nCopyright (c) 2024 Akinori MUSHA.\n\nLicensed under the 2-clause BSD license.  See `LICENSE.txt` for details.\n\nVisit the [GitHub Repository](https://github.com/knu/update-tools) for the latest information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fchanged-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Fchanged-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fchanged-files/lists"}