{"id":25213342,"url":"https://github.com/olivr/download-file-action","last_synced_at":"2026-05-09T00:08:51.355Z","repository":{"id":41784967,"uuid":"263015587","full_name":"Olivr/download-file-action","owner":"Olivr","description":"GitHub action to add a remote file to the current repo","archived":false,"fork":false,"pushed_at":"2023-01-06T05:34:48.000Z","size":1231,"stargazers_count":0,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"v1","last_synced_at":"2025-03-20T06:03:09.612Z","etag":null,"topics":["actions","github","open-source"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Olivr.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-05-11T10:52:16.000Z","updated_at":"2020-05-13T13:59:56.000Z","dependencies_parsed_at":"2023-02-05T10:46:20.426Z","dependency_job_id":null,"html_url":"https://github.com/Olivr/download-file-action","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olivr%2Fdownload-file-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olivr%2Fdownload-file-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olivr%2Fdownload-file-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Olivr%2Fdownload-file-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Olivr","download_url":"https://codeload.github.com/Olivr/download-file-action/tar.gz/refs/heads/v1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305906,"owners_count":20917202,"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","github","open-source"],"created_at":"2025-02-10T15:19:52.896Z","updated_at":"2026-05-09T00:08:51.317Z","avatar_url":"https://github.com/Olivr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Download file action\n\n[![tests](https://github.com/olivr-com/download-file-action/workflows/tests/badge.svg)](https://github.com/olivr-com/download-file-action/actions?query=workflow%3Atests)\n\nGitHub action to download a remote file to the current repo.\n\nWe use it to maintain an organization-wide central repo with common files such as LICENSE, CONTRIBUTING.md, etc. Other repos sync with the latest versions of those files every time they're built.\n\n## Usage\n\n\u003e This action doesn't commit the file. You can use [another action](https://github.com/marketplace?query=commit\u0026type=actions) to do so.\n\n### Simple example\n\nDownload the file `http://test.com/CONTRIBUTING.md` to this repo.\n\n```yaml\nuses: olivr-com/download-file-action@v1\nwith:\n  url: http://test.com/CONTRIBUTING.md\n```\n\n### Complete example\n\nDownload the file `http://test.com/CONTRIBUTING.md` in the `docs` directory of this repo and name it `CONTRIBUTE`.\n\n```yaml\nuses: olivr-com/download-file-action@v1\nwith:\n  url: http://test.com/CONTRIBUTING.md\n  path: './docs/'\n  filename: 'CONTRIBUTE'\n  overwrite: true\n```\n\n\u003e Set overwrite to false to throw an error in case the remote file is not the same of a local file\n\n## Contribute\n\nCheckout the v1 branch\n\nInstall the dependencies\n\n```bash\nnpm install\n```\n\nRun the tests\n\n```bash\nnpm test\n```\n\n### Package for distribution\n\nGitHub Actions will run the entry point from the action.yml. Packaging assembles the code into one file that can be checked in to Git, enabling fast and reliable execution and preventing the need to check in node_modules.\n\nActions are run from GitHub repos. Packaging the action will create a packaged action in the dist folder.\n\nRun package\n\n```bash\nnpm run package\n```\n\nSince the packaged index.js is run from the dist folder.\n\n```bash\ngit add dist\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivr%2Fdownload-file-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folivr%2Fdownload-file-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivr%2Fdownload-file-action/lists"}