get_github_release
Community Action Reference: Inspected directly from Fastlane core ruby gem definitions.
Supported Platforms: ios, android, mac
This will verify if a given release version is available on GitHub
Details
This will return all information about a release. For example:| |
{| "url"=>"https://api.github.com/repos/KrauseFx/fastlane/releases/1537713",| "assets_url"=>"https://api.github.com/repos/KrauseFx/fastlane/releases/1537713/assets",| "upload_url"=>"https://uploads.github.com/repos/KrauseFx/fastlane/releases/1537713/assets{?name}",| "html_url"=>"https://github.com/fastlane/fastlane/releases/tag/1.8.0",| "id"=>1537713,| "tag_name"=>"1.8.0",| "target_commitish"=>"master",| "name"=>"1.8.0 Switch Lanes & Pass Parameters",| "draft"=>false,| "author"=>| {"login"=>"KrauseFx",| "id"=>869950,| "avatar_url"=>"https://avatars.githubusercontent.com/u/869950?v=3",| "gravatar_id"=>"",| "url"=>"https://api.github.com/users/KrauseFx",| "html_url"=>"https://github.com/fastlane",| "followers_url"=>"https://api.github.com/users/KrauseFx/followers",| "following_url"=>"https://api.github.com/users/KrauseFx/following{/other_user}",| "gists_url"=>"https://api.github.com/users/KrauseFx/gists{/gist_id}",| "starred_url"=>"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}",| "subscriptions_url"=>"https://api.github.com/users/KrauseFx/subscriptions",| "organizations_url"=>"https://api.github.com/users/KrauseFx/orgs",| "repos_url"=>"https://api.github.com/users/KrauseFx/repos",| "events_url"=>"https://api.github.com/users/KrauseFx/events{/privacy}",| "received_events_url"=>"https://api.github.com/users/KrauseFx/received_events",| "type"=>"User",| "site_admin"=>false},| "prerelease"=>false,| "created_at"=>"2015-07-14T23:33:01Z",| "published_at"=>"2015-07-14T23:44:10Z",| "assets"=>[],| "tarball_url"=>"https://api.github.com/repos/KrauseFx/fastlane/tarball/1.8.0",| "zipball_url"=>"https://api.github.com/repos/KrauseFx/fastlane/zipball/1.8.0",| "body"=> ...Markdown...| "This is one of the biggest updates of _fastlane_ yet"|}||
Parameters & Options
Total options available: 5
| Key | Type | Env Variable | Default | Required | Description |
|---|---|---|---|---|---|
url |
String |
FL_GET_GITHUB_RELEASE_URL |
- |
Yes | The path to your repo, e.g. ‘KrauseFx/fastlane’ |
server_url |
String |
FL_GITHUB_RELEASE_SERVER_URL |
https://api.github.com |
No | The server url. e.g. ‘https://your.github.server/api/v3’ (Default: ‘https://api.github.com’) |
version |
String |
FL_GET_GITHUB_RELEASE_VERSION |
- |
Yes | The version tag of the release to check |
api_token |
String |
FL_GITHUB_RELEASE_API_TOKEN |
- |
No | GitHub Personal Token (required for private repositories) |
api_bearer |
String |
FL_GITHUB_RELEASE_API_BEARER |
- |
No | Use a Bearer authorization token. Usually generated by GitHub Apps, e.g. GitHub Actions GITHUB_TOKEN environment variable |
Lane Context Shared Values
This action writes the following values to Actions.lane_context[SharedValues::...]:
| Key | Description |
|---|---|
SharedValues::GET_GITHUB_RELEASE_INFO |
Contains all the information about this release |
Examples
release = get_github_release(url: "fastlane/fastlane", version: "1.0.0")puts release["name"]Source & Upstream
- Gem Action:
get_github_release.rb - Upstream Source: Inspect Ruby Implementation on GitHub
- Authors:
KrauseFx,czechboy0,jaleksynas,tommeier