{"id":15650501,"url":"https://github.com/bhacaz/checkout-files","last_synced_at":"2025-11-17T14:00:50.842Z","repository":{"id":37051023,"uuid":"288592830","full_name":"Bhacaz/checkout-files","owner":"Bhacaz","description":"Github Action checkout only certain files","archived":false,"fork":false,"pushed_at":"2023-08-09T13:27:42.000Z","size":1132,"stargazers_count":34,"open_issues_count":9,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T07:08:00.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Bhacaz.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":"2020-08-19T00:21:45.000Z","updated_at":"2025-03-24T00:18:54.000Z","dependencies_parsed_at":"2024-06-18T14:16:27.264Z","dependency_job_id":null,"html_url":"https://github.com/Bhacaz/checkout-files","commit_stats":{"total_commits":53,"total_committers":2,"mean_commits":26.5,"dds":"0.037735849056603765","last_synced_commit":"929a260d3fde6c845f3222d376c0f1b51536a329"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fcheckout-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fcheckout-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fcheckout-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bhacaz%2Fcheckout-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bhacaz","download_url":"https://codeload.github.com/Bhacaz/checkout-files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837280,"owners_count":21169374,"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":[],"created_at":"2024-10-03T12:34:52.885Z","updated_at":"2025-11-17T14:00:50.699Z","avatar_url":"https://github.com/Bhacaz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# checkout-files\n\n⚠️ Please consider using `actions/checkout` with the option [`sparse-checkout`](https://github.com/actions/checkout#fetch-only-a-single-file). \n\nGitHub Action to checkout only certain files and/or folders.\nUseful if only need certain files, like config or\nassets for your workflow, instead of pulling the whole repo.\n\n## Usage\n\nMinimal setup.\n\n```yaml\n- name: Checkout files\n  uses: Bhacaz/checkout-files@v2\n  with:\n   files: package.json\n```\n\n## Inputs\n\n|Name| Description                                                                                                                                                                    | Required |Default|\n|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|---|\n|`files`| A list of files with the path separated by a space, relative to root of your repository. Can also be a folder and the action will recursively pull all the files.              | `true`  |N/A|\n|`token`| A GitHub token.                                                                                                                                                                | `false` |`${{ github.token }}`|\n|`branch`| Checkout files from a specific branch. If not specified, it use the default repository branch.\u003cbr/\u003e To use the current working branch `${{ github.head_ref \\|\\| github.ref_name }}`  |`false`|Default branch of the repository.|\n\n## Limitations\n\n* This action doesn't keep the mode bits (or permission) of files. See [#18](https://github.com/Bhacaz/checkout-files/issues/18) for more details.\n* Cannot pull files bigger than 1 mb. WIP [#3](https://github.com/Bhacaz/checkout-files/issues/3) \u0026 [#9](https://github.com/Bhacaz/checkout-files/issues/9)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhacaz%2Fcheckout-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhacaz%2Fcheckout-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhacaz%2Fcheckout-files/lists"}