{"id":18586366,"url":"https://github.com/cardinalby/git-get-release-action","last_synced_at":"2025-07-27T02:08:50.014Z","repository":{"id":38409164,"uuid":"278659618","full_name":"cardinalby/git-get-release-action","owner":"cardinalby","description":"Github Action that allows you to get release information by release id, tag, commit SHA (current commit or specified).","archived":false,"fork":false,"pushed_at":"2024-06-12T20:50:06.000Z","size":546,"stargazers_count":33,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T00:43:30.707Z","etag":null,"topics":["actions","release"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/cardinalby.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-07-10T14:49:32.000Z","updated_at":"2025-03-27T18:45:36.000Z","dependencies_parsed_at":"2024-06-13T02:55:49.264Z","dependency_job_id":null,"html_url":"https://github.com/cardinalby/git-get-release-action","commit_stats":{"total_commits":53,"total_committers":4,"mean_commits":13.25,"dds":"0.28301886792452835","last_synced_commit":"cedef2faf69cb7c55b285bad07688d04430b7ada"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/cardinalby/git-get-release-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardinalby%2Fgit-get-release-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardinalby%2Fgit-get-release-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardinalby%2Fgit-get-release-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardinalby%2Fgit-get-release-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cardinalby","download_url":"https://codeload.github.com/cardinalby/git-get-release-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cardinalby%2Fgit-get-release-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267285630,"owners_count":24064200,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","release"],"created_at":"2024-11-07T00:38:00.124Z","updated_at":"2025-07-27T02:08:49.997Z","avatar_url":"https://github.com/cardinalby.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![integration-test](https://github.com/cardinalby/git-get-release-action/actions/workflows/integration-test.yml/badge.svg)](https://github.com/cardinalby/git-get-release-action/actions/workflows/integration-test.yml)\n[![functional-test](https://github.com/cardinalby/git-get-release-action/actions/workflows/functional-test.yml/badge.svg)](https://github.com/cardinalby/git-get-release-action/actions/workflows/functional-test.yml)\n[![build-pack](https://github.com/cardinalby/git-get-release-action/actions/workflows/build-pack.yml/badge.svg)](https://github.com/cardinalby/git-get-release-action/actions/workflows/build-pack.yml)\n\n# Get GitHub release information \n\nAllows you to get a release information by release id, tag, commit SHA or get the last release.\n\nIf release not found, it finishes with an error.\n\n## Inputs\n\n### Search by:\n\nSet **exactly 1 input** from the list to search release by:\n\n#### 🔸 `releaseId` \nRelease id (number).\n\n#### 🔸 `tag` \nTag name.\n\n#### 🔸 `commitSha`\nSHA of commit. Can be used to find a draft release.\n\n#### 🔸 `releaseName`\nExact release name. Returns most recent found. Can be used to find a draft release.\n\n#### 🔸 `releaseNameRegEx` \nRegexp to test release name\n\n#### 🔸 `latest` \nSet `1` or `true` to get the latest non-draft release.\n\n_If no inputs specified, the action will try to get release for the current commit SHA._\n\n### Additional filters\n\nWith any of inputs above you can also use 2 additional filter inputs:\n\n#### 🔹 `draft`\nSet `true` to search only for draft releases. \u003cbr\u003e\nSet `false` to search only releases that are not draft.\nLeave empty to not check if a release is a draft.\n\n#### 🔹 `prerelease`\nSet `true` to search only for prerelease releases.\u003cbr\u003e\nSet `false` to search only releases that are not prerelease.\nLeave empty to not check if a release is a prerelease.\n\n### Options\n\n#### 🔻 `doNotFailIfNotFound` _Optional, default: `false`_\n\nSet `true` to force the action to finish with success even if release was not found. \nCan be useful in composite actions, where `continue-on-error` is not available.\nIf set, you can examine `id` output to know if release was found.\n\n#### 🔻 `searchLimit` _Optional, default: `90`_\nIf you use one of `commitSha`, `releaseName`, \n`releaseNameRegEx` inputs you can also specify how many releases action should retrieve to perform \na search. Specify more than 90 if\nyou age going to search for old releases and less if you want to speed up the search.\n\n#### 🔻 `repo` _Optional, default: current repository_\n\nRepository name in form of \"owner/name\". If not set, `GITHUB_REPOSITORY` env variable is used that by \ndefault points to a current repository.\n\n## Env variables\n\nYou should set `GITHUB_TOKEN` env variable to enable action to access GitHub API. \nFor some operations default `github.token` is not enough, you need to pass a personal access token.\n\n## Outputs\nValues from [API](https://docs.github.com/en/rest/reference/repos#releases) response object:\n\n* `html_url`\n* `upload_url` can be used to upload assets\n* `tarball_url`\n* `zipball_url`\n* `id`\n* `tag_name`\n* `target_commitish`\n* `name`\n* `body`\n* `draft` contains `true` or `false` string value\n* `prerelease` contains `true` or `false` string value\n* `created_at`\n* `published_at`\n* `url`\n* `assets_url`\n* `node_id`\n* `author` (JSON with author object)\n* `assets` (JSON with assets object)\n\n## Usage example\n\n```yaml\n- uses: cardinalby/git-get-release-action@v1\n  env:\n    GITHUB_TOKEN: ${{ github.token }}  # or your personal access token\n  with:\n    tag: '1.2.3'    \n```\n\n```yaml\n- uses: cardinalby/git-get-release-action@v1\n  env:\n    GITHUB_TOKEN: ${{ github.token }}  # or your personal access token\n  with:\n    commitSha: e92acb19de8845ad1f3cb6cfab421ac26002d6b6\n    prerelease: false\n```\n\nFor more examples check out [functional self-test](./.github/workflows/functional-test.yml).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcardinalby%2Fgit-get-release-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcardinalby%2Fgit-get-release-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcardinalby%2Fgit-get-release-action/lists"}