GetRelease
Use this data source to retrieve information about a GitHub release in a specific repository.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Github.GetRelease.InvokeAsync(new Github.GetReleaseArgs
{
Owner = "example-owner",
Repository = "example-repository",
RetrieveBy = "latest",
}));
}
}
Coming soon!
import pulumi
import pulumi_github as github
example = github.get_release(owner="example-owner",
repository="example-repository",
retrieve_by="latest")import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = pulumi.output(github.getRelease({
owner: "example-owner",
repository: "example-repository",
retrieveBy: "latest",
}, { async: true }));Using GetRelease
function getRelease(args: GetReleaseArgs, opts?: InvokeOptions): Promise<GetReleaseResult>function get_release(owner=None, release_id=None, release_tag=None, repository=None, retrieve_by=None, opts=None)func GetRelease(ctx *Context, args *GetReleaseArgs, opts ...InvokeOption) (*GetReleaseResult, error)public static class GetRelease {
public static Task<GetReleaseResult> InvokeAsync(GetReleaseArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Owner string
Owner of the repository.
- Repository string
Name of the repository to retrieve the release from.
- Retrieve
By string Describes how to fetch the release. Valid values are
id,tag,latest.- Release
Id int ID of the release to retrieve. Must be specified when
retrieve_by=id.- Release
Tag string Tag of the release to retrieve. Must be specified when
retrieve_by=tag.
- Owner string
Owner of the repository.
- Repository string
Name of the repository to retrieve the release from.
- Retrieve
By string Describes how to fetch the release. Valid values are
id,tag,latest.- Release
Id int ID of the release to retrieve. Must be specified when
retrieve_by=id.- Release
Tag string Tag of the release to retrieve. Must be specified when
retrieve_by=tag.
- owner string
Owner of the repository.
- repository string
Name of the repository to retrieve the release from.
- retrieve
By string Describes how to fetch the release. Valid values are
id,tag,latest.- release
Id number ID of the release to retrieve. Must be specified when
retrieve_by=id.- release
Tag string Tag of the release to retrieve. Must be specified when
retrieve_by=tag.
- owner str
Owner of the repository.
- repository str
Name of the repository to retrieve the release from.
- retrieve_
by str Describes how to fetch the release. Valid values are
id,tag,latest.- release_
id float ID of the release to retrieve. Must be specified when
retrieve_by=id.- release_
tag str Tag of the release to retrieve. Must be specified when
retrieve_by=tag.
GetRelease Result
The following output properties are available:
- Asserts
Url string URL of any associated assets with the release
- Body string
Contents of the description (body) of a release
- Created
At string Date of release creation
- Draft bool
(
Boolean) indicates whether the release is a draft- Html
Url string URL directing to detailed information on the release
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Name of release
- Owner string
- Prerelease bool
(
Boolean) indicates whether the release is a prerelease- Published
At string Date of release publishing
- Repository string
- Retrieve
By string - Tarball
Url string Download URL of a specific release in
tar.gzformat- Target
Commitish string Commitish value that determines where the Git release is created from
- Upload
Url string URL that can be used to upload Assets to the release
- Url string
Base URL of the release
- Zipball
Url string Download URL of a specific release in
zipformat- Release
Id int ID of release
- Release
Tag string Tag of release
- Asserts
Url string URL of any associated assets with the release
- Body string
Contents of the description (body) of a release
- Created
At string Date of release creation
- Draft bool
(
Boolean) indicates whether the release is a draft- Html
Url string URL directing to detailed information on the release
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Name of release
- Owner string
- Prerelease bool
(
Boolean) indicates whether the release is a prerelease- Published
At string Date of release publishing
- Repository string
- Retrieve
By string - Tarball
Url string Download URL of a specific release in
tar.gzformat- Target
Commitish string Commitish value that determines where the Git release is created from
- Upload
Url string URL that can be used to upload Assets to the release
- Url string
Base URL of the release
- Zipball
Url string Download URL of a specific release in
zipformat- Release
Id int ID of release
- Release
Tag string Tag of release
- asserts
Url string URL of any associated assets with the release
- body string
Contents of the description (body) of a release
- created
At string Date of release creation
- draft boolean
(
Boolean) indicates whether the release is a draft- html
Url string URL directing to detailed information on the release
- id string
The provider-assigned unique ID for this managed resource.
- name string
Name of release
- owner string
- prerelease boolean
(
Boolean) indicates whether the release is a prerelease- published
At string Date of release publishing
- repository string
- retrieve
By string - tarball
Url string Download URL of a specific release in
tar.gzformat- target
Commitish string Commitish value that determines where the Git release is created from
- upload
Url string URL that can be used to upload Assets to the release
- url string
Base URL of the release
- zipball
Url string Download URL of a specific release in
zipformat- release
Id number ID of release
- release
Tag string Tag of release
- asserts_
url str URL of any associated assets with the release
- body str
Contents of the description (body) of a release
- created_
at str Date of release creation
- draft bool
(
Boolean) indicates whether the release is a draft- html_
url str URL directing to detailed information on the release
- id str
The provider-assigned unique ID for this managed resource.
- name str
Name of release
- owner str
- prerelease bool
(
Boolean) indicates whether the release is a prerelease- published_
at str Date of release publishing
- repository str
- retrieve_
by str - tarball_
url str Download URL of a specific release in
tar.gzformat- target_
commitish str Commitish value that determines where the Git release is created from
- upload_
url str URL that can be used to upload Assets to the release
- url str
Base URL of the release
- zipball_
url str Download URL of a specific release in
zipformat- release_
id float ID of release
- release_
tag str Tag of release
Package Details
- Repository
- https://github.com/pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.