{"id":18860027,"url":"https://github.com/duhow/download-github-release-assets","last_synced_at":"2025-04-14T12:22:54.159Z","repository":{"id":42367958,"uuid":"401375830","full_name":"duhow/download-github-release-assets","owner":"duhow","description":"Github Action to download GitHub release assets","archived":false,"fork":false,"pushed_at":"2022-04-08T15:32:28.000Z","size":229,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T01:44:34.342Z","etag":null,"topics":["artifact","github-action","github-actions","github-release"],"latest_commit_sha":null,"homepage":"","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/duhow.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":"2021-08-30T14:36:07.000Z","updated_at":"2022-04-08T15:27:32.000Z","dependencies_parsed_at":"2023-01-04T12:25:14.598Z","dependency_job_id":null,"html_url":"https://github.com/duhow/download-github-release-assets","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.125,"last_synced_commit":"0e56296c83fb949386e12be271c80504e8ffea45"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duhow%2Fdownload-github-release-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duhow%2Fdownload-github-release-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duhow%2Fdownload-github-release-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duhow%2Fdownload-github-release-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duhow","download_url":"https://codeload.github.com/duhow/download-github-release-assets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248878586,"owners_count":21176340,"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":["artifact","github-action","github-actions","github-release"],"created_at":"2024-11-08T04:20:36.947Z","updated_at":"2025-04-14T12:22:54.121Z","avatar_url":"https://github.com/duhow.png","language":"JavaScript","readme":"[![GitHub release](https://img.shields.io/github/release/duhow/download-github-release-assets.svg?style=flat-square)](https://github.com/duhow/download-github-release-assets/releases/latest)\n[![Test workflow](https://img.shields.io/github/workflow/status/duhow/download-github-release-assets/CI?label=test\u0026logo=github\u0026style=flat-square)](https://github.com/duhow/download-github-release-assets/actions?workflow=CI)\n\n# GitHub Action: Download GitHub Release Assets\n\nInspired by [dsaltares/fetch-gh-release-asset](https://github.com/dsaltares/fetch-gh-release-asset) GitHub Action and several others,\nthis action downloads all assets from a Release, without needing to build a Docker container.\n\nThis results in a faster job execution, since GitHub Actions Runner will execute the JavaScript code directly. :)\n\n## Example\n\n```yaml\nname: ci\n\non:\n  push:\n    branches:\n      - 'master'\n    tags:\n      - 'v*'\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n      - name: Download release dependencies\n        uses: duhow/download-github-release-assets@v1\n        with:\n          token: ${{ secrets.PAT_TOKEN }}\n          repository: actions/runner\n          tag: v2.282.1\n          files: actions-runner-linux-x64-*.tar.gz\n          target: apps/actions-runner.tar.gz\n      - name: Extract\n        run: |\n          tar xzvf apps/actions-runner.tar.gz\n```\n\n## Inputs\n\n### `token`\n\n**Optional** GitHub Token to authenticate as. Defaults to `${{ secrets.GITHUB_TOKEN }}`\n\n### `repository`\n\nThe `org/repo` containing the release. Defaults to the current repository.\n\n### `release-id`\n\nThe Release ID version to fetch. If no `tag` is specified, defaults to `latest` release.\n\n### `tag`\n\nThe Git tag name to fetch the release from.\n\n### `files`\n\n**Required** The name of the file/s to download as a list, or single file.\nIf `files` is set to `'*'`, **all assets** are downloaded.  \nYou can use `*` wildcard to select a file pattern.\n\n```yaml\nfiles: |\n  config.json\n  program-*.exe\n```\n\n### `target`\n\nTarget file path. If several `files` are specified, this is the folder to download the files (recursive folders will be created if don't exist).\nIf `files` contains a single file, this is the full path to download the file (recursive folders will be created).\n\n### `download`\n\nSet to false if you do not want to download files, output assets still will contain selected files.\n\n## Outputs\n\n### `name`\n\nThe title / name of the selected release.\n\n### `body`\n\nThe description / body of the selected release.\n\n### `tag`\n\nThe Git tag value of the selected release. Useful to attempt knowing the version if you selected `latest`.\n\n### `assets`\n\nList of full path assets downloaded.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduhow%2Fdownload-github-release-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduhow%2Fdownload-github-release-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduhow%2Fdownload-github-release-assets/lists"}