{"id":19032725,"url":"https://github.com/joutvhu/get-release","last_synced_at":"2025-04-23T16:41:21.443Z","repository":{"id":45942972,"uuid":"354102323","full_name":"joutvhu/get-release","owner":"joutvhu","description":"GitHub Action to get release","archived":false,"fork":false,"pushed_at":"2025-04-14T09:54:26.000Z","size":698,"stargazers_count":11,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T23:36:11.315Z","etag":null,"topics":["actions","get","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/joutvhu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2021-04-02T18:31:11.000Z","updated_at":"2024-12-12T16:39:17.000Z","dependencies_parsed_at":"2024-06-19T19:03:11.609Z","dependency_job_id":"ae41e378-157b-42cc-bad1-cf7648a1289e","html_url":"https://github.com/joutvhu/get-release","commit_stats":{"total_commits":34,"total_committers":3,"mean_commits":"11.333333333333334","dds":"0.17647058823529416","last_synced_commit":"277e0bc4f699eea9eb78552bcc3729868355a1b5"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fget-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fget-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fget-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fget-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joutvhu","download_url":"https://codeload.github.com/joutvhu/get-release/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250091320,"owners_count":21373361,"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","get","github","release"],"created_at":"2024-11-08T21:30:44.756Z","updated_at":"2025-04-23T16:41:21.421Z","avatar_url":"https://github.com/joutvhu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get Release\n\nGitHub Action to get release.\nUseful when you want to get upload_url of current release then upload additional assets by the [`@actions/upload-release-asset`](https://www.github.com/actions/upload-release-asset) GitHub Action.\n\n## Usage\n\nSee [action.yml](action.yml)\n\n# Outputs\n\nFor more information on these outputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#response-4) for an example of what these outputs look like\n\n- `id`: The release ID\n- `html_url`: The URL users can navigate to in order to view the release. ex: `https://github.com/joutvhu/get-release/releases/v1.0.0`\n- `upload_url`: The URL for uploading assets to the release, which could be used by GitHub Actions for additional uses, for example the [`@actions/upload-release-asset`](https://www.github.com/actions/upload-release-asset) GitHub Action\n- `tag_name`: The git tag associated with the release. ex: `v1.1.0`\n- `prerelease`: Whether the release is a pre-release\n\n## Get Current Release\n\nIf you don't specify `tag_name` and `latest` in your inputs the action will be get release of current release if available\n\n```yaml\nname: Upload Asset To Current Release\non:\n  release:\n    types: [created]\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Build project\n        run: |\n          zip --junk-paths my-artifact README.md\n\n      - name: Get Current Release\n        id: get_current_release\n        uses: joutvhu/get-release@v1\n        with:\n          debug: true\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n      - name: Upload Release Asset\n        uses: actions/upload-release-asset@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          upload_url: ${{ steps.get_current_release.outputs.upload_url }}\n          asset_path: ./my-artifact.zip\n          asset_name: my-artifact.zip\n          asset_content_type: application/zip\n```\n\n## Get Release By Tag Name\n\nYou can specify the exact `tag_name` of release you want to get\n\n```yaml\nsteps:\n  - uses: joutvhu/get-release@v1\n    with:\n      tag_name: v1.0.0\n    env:\n      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Get The Latest Release\n\nSet `latest: true` to find the latest release whose tag_name matches `pattern`.\nSet `prerelease: true` to search for releases that include pre-releases.\n\n```yaml\nsteps:\n  - uses: joutvhu/get-release@v1\n    with:\n      latest: true\n      # Tag name start with `v`\n      pattern: '^v.*'\n      # Including pre-release\n      prerelease: true\n    env:\n      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fget-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoutvhu%2Fget-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fget-release/lists"}