{"id":14986002,"url":"https://github.com/carlosperate/download-file-action","last_synced_at":"2025-04-23T13:43:21.715Z","repository":{"id":40704349,"uuid":"245293917","full_name":"carlosperate/download-file-action","owner":"carlosperate","description":"GitHub Action to download a file from the internet into the workspace to use in your workflow.","archived":false,"fork":false,"pushed_at":"2024-06-26T22:13:03.000Z","size":691,"stargazers_count":27,"open_issues_count":6,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-13T10:17:52.517Z","etag":null,"topics":["actions","github-action","github-actions","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/download-file-to-workspace","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/carlosperate.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-03-06T00:09:54.000Z","updated_at":"2025-04-10T07:56:04.000Z","dependencies_parsed_at":"2024-08-18T00:13:27.451Z","dependency_job_id":"c4cf1be8-2b9e-4cd4-8db8-4b29f6b683cc","html_url":"https://github.com/carlosperate/download-file-action","commit_stats":{"total_commits":74,"total_committers":4,"mean_commits":18.5,"dds":0.4864864864864865,"last_synced_commit":"3ec6fcef61e19eaaa0236a95fbaf333f2baf341e"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosperate%2Fdownload-file-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosperate%2Fdownload-file-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosperate%2Fdownload-file-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosperate%2Fdownload-file-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlosperate","download_url":"https://codeload.github.com/carlosperate/download-file-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250441364,"owners_count":21431162,"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-action","github-actions","hacktoberfest"],"created_at":"2024-09-24T14:12:07.148Z","updated_at":"2025-04-23T13:43:21.694Z","avatar_url":"https://github.com/carlosperate.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# download-file-action\n\n![Workflow To Test Action](https://github.com/carlosperate/download-file-action/workflows/Workflow%20To%20Test%20Action/badge.svg)\n\nGitHub Action to download a file from the internet into the workspace.\n\n\n## Inputs\n\n- `file-url`: **(Required)** The URL of the file to download.\n- `file-name`: *(Optional)* A new filename to rename the downloaded file.\n- `location`: *(Optional)* A path to download the file.\n- `md5`: *(Optional)* An MD5 hash to verify the download.\n- `sha256`: *(Optional)* An SHA256 hash to verify the download.\n\n\n## Outputs\n\n- `file-path`: The absolute path to the downloaded file.\n\n\n## Example usage\n\nIn its simplest form you can you indicate what file to download and use it:\n\n```yaml\n- name: Download a file\n  uses: carlosperate/download-file-action@v2\n  with:\n    file-url: 'https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py'\n- name: Check the file is there\n  run: ls -l get-poetry.py\n```\n\nTo use all the options:\n\n```yml\n- name: Download a file\n  uses: carlosperate/download-file-action@v2\n  id: download-file\n  with:\n    file-url: 'https://github.com/carlosperate/download-file-action/archive/refs/tags/v1.0.3.tar.gz'\n    file-name: 'new_filename.tar.gz'\n    location: './new-folder-to-be-created'\n    md5: 'e3b51204dedc75588ca164a26b51610d'\n    sha256: '76ef5cf6e910a4955f713fb36cca6f90ffeee6ffafe743754716e149d68136de'\n- name: Print the file path (new-folder-to-be-created/new_filename.tar.gz)\n  run: echo \"The file was downloaded to ${{ steps.download-file.outputs.file-path }}\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosperate%2Fdownload-file-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlosperate%2Fdownload-file-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosperate%2Fdownload-file-action/lists"}