github-release
Get details of GitHub releases and associated assets.
Installation
dagger install github.com/jedevc/daggerverse/github-release@v1.0.0
Entrypoint
Return Type
GithubRelease
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
func (m *MyModule) Example() *dagger.GithubRelease {
return dag.
GithubRelease()
}
@function
def example() -> dagger.GithubRelease:
return (
dag.github_release()
)
@func()
example(): GithubRelease {
return dag
.githubRelease()
}
Types
GithubRelease 🔗
getLatest() 🔗
Get the latest release for a repository
Return Type
GithubReleaseRelease !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | GitHub repository in the form of "owner/repo" |
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get-latest --repo string
func (m *MyModule) Example(repo string) *dagger.GithubReleaseRelease {
return dag.
GithubRelease().
GetLatest(repo)
}
@function
def example(repo: str) -> dagger.GithubReleaseRelease:
return (
dag.github_release()
.get_latest(repo)
)
@func()
example(repo: string): GithubReleaseRelease {
return dag
.githubRelease()
.getLatest(repo)
}
get() 🔗
Get the specified release for a repository
Return Type
GithubReleaseRelease !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | GitHub repository in the form of "owner/repo" |
tag | String ! | - | Tag name of the release |
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string
func (m *MyModule) Example(repo string, tag string) *dagger.GithubReleaseRelease {
return dag.
GithubRelease().
Get(repo, tag)
}
@function
def example(repo: str, tag: str) -> dagger.GithubReleaseRelease:
return (
dag.github_release()
.get(repo, tag)
)
@func()
example(repo: string, tag: string): GithubReleaseRelease {
return dag
.githubRelease()
.get(repo, tag)
}
GithubReleaseRelease 🔗
A GitHub release
repository() 🔗
Git repository that the release is from
Return Type
GitRepository !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
repository
func (m *MyModule) Example(repo string, tag string) *dagger.GitRepository {
return dag.
GithubRelease().
Get(repo, tag).
Repository()
}
@function
def example(repo: str, tag: str) -> dagger.GitRepository:
return (
dag.github_release()
.get(repo, tag)
.repository()
)
@func()
example(repo: string, tag: string): GitRepository {
return dag
.githubRelease()
.get(repo, tag)
.repository()
}
name() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
name
func (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
GithubRelease().
Get(repo, tag).
Name(ctx)
}
@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github_release()
.get(repo, tag)
.name()
)
@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.name()
}
tag() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
tag
func (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
GithubRelease().
Get(repo, tag).
Tag(ctx)
}
@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github_release()
.get(repo, tag)
.tag()
)
@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.tag()
}
body() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
body
func (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
GithubRelease().
Get(repo, tag).
Body(ctx)
}
@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github_release()
.get(repo, tag)
.body()
)
@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.body()
}
url() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
url
func (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
GithubRelease().
Get(repo, tag).
Url(ctx)
}
@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github_release()
.get(repo, tag)
.url()
)
@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.url()
}
createdAt() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
created-at
func (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
GithubRelease().
Get(repo, tag).
CreatedAt(ctx)
}
@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github_release()
.get(repo, tag)
.created_at()
)
@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.createdAt()
}
publishedAt() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
published-at
func (m *MyModule) Example(ctx context.Context, repo string, tag string) string {
return dag.
GithubRelease().
Get(repo, tag).
PublishedAt(ctx)
}
@function
async def example(repo: str, tag: str) -> str:
return await (
dag.github_release()
.get(repo, tag)
.published_at()
)
@func()
async example(repo: string, tag: string): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.publishedAt()
}
assets() 🔗
Return Type
[GithubReleaseAsset ! ] !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
assets
func (m *MyModule) Example(repo string, tag string) []*dagger.GithubReleaseAsset {
return dag.
GithubRelease().
Get(repo, tag).
Assets()
}
@function
def example(repo: str, tag: str) -> List[dagger.GithubReleaseAsset]:
return (
dag.github_release()
.get(repo, tag)
.assets()
)
@func()
example(repo: string, tag: string): GithubReleaseAsset[] {
return dag
.githubRelease()
.get(repo, tag)
.assets()
}
ref() 🔗
Git reference pointed to by the release tag
Return Type
GitRef !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
ref
func (m *MyModule) Example(repo string, tag string) *dagger.GitRef {
return dag.
GithubRelease().
Get(repo, tag).
Ref()
}
@function
def example(repo: str, tag: str) -> dagger.GitRef:
return (
dag.github_release()
.get(repo, tag)
.ref()
)
@func()
example(repo: string, tag: string): GitRef {
return dag
.githubRelease()
.get(repo, tag)
.ref()
}
findAsset() 🔗
Return the shortest asset whose name contains all of the given keywords.
This is neccessary because GitHub doesn’t provide a way to filter assets by platform, or variant, or linux distro, etc.
Return Type
GithubReleaseAsset !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
keywords | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2
func (m *MyModule) Example(repo string, tag string, keywords []string) *dagger.GithubReleaseAsset {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords)
}
@function
def example(repo: str, tag: str, keywords: List[str]) -> dagger.GithubReleaseAsset:
return (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
)
@func()
example(repo: string, tag: string, keywords: string[]): GithubReleaseAsset {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
}
GithubReleaseAsset 🔗
name() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
name
func (m *MyModule) Example(ctx context.Context, repo string, tag string, keywords []string) string {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
Name(ctx)
}
@function
async def example(repo: str, tag: str, keywords: List[str]) -> str:
return await (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.name()
)
@func()
async example(repo: string, tag: string, keywords: string[]): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.name()
}
label() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
label
func (m *MyModule) Example(ctx context.Context, repo string, tag string, keywords []string) string {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
Label(ctx)
}
@function
async def example(repo: str, tag: str, keywords: List[str]) -> str:
return await (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.label()
)
@func()
async example(repo: string, tag: string, keywords: string[]): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.label()
}
contentType() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
content-type
func (m *MyModule) Example(ctx context.Context, repo string, tag string, keywords []string) string {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
ContentType(ctx)
}
@function
async def example(repo: str, tag: str, keywords: List[str]) -> str:
return await (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.content_type()
)
@func()
async example(repo: string, tag: string, keywords: string[]): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.contentType()
}
size() 🔗
Return Type
Integer !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
size
func (m *MyModule) Example(ctx context.Context, repo string, tag string, keywords []string) int {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
Size(ctx)
}
@function
async def example(repo: str, tag: str, keywords: List[str]) -> int:
return await (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.size()
)
@func()
async example(repo: string, tag: string, keywords: string[]): Promise<number> {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.size()
}
url() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
url
func (m *MyModule) Example(ctx context.Context, repo string, tag string, keywords []string) string {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
Url(ctx)
}
@function
async def example(repo: str, tag: str, keywords: List[str]) -> str:
return await (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.url()
)
@func()
async example(repo: string, tag: string, keywords: string[]): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.url()
}
downloadUrl() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
download-url
func (m *MyModule) Example(ctx context.Context, repo string, tag string, keywords []string) string {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
DownloadUrl(ctx)
}
@function
async def example(repo: str, tag: str, keywords: List[str]) -> str:
return await (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.download_url()
)
@func()
async example(repo: string, tag: string, keywords: string[]): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.downloadUrl()
}
createdAt() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
created-at
func (m *MyModule) Example(ctx context.Context, repo string, tag string, keywords []string) string {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
CreatedAt(ctx)
}
@function
async def example(repo: str, tag: str, keywords: List[str]) -> str:
return await (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.created_at()
)
@func()
async example(repo: string, tag: string, keywords: string[]): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.createdAt()
}
updatedAt() 🔗
Return Type
String !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
updated-at
func (m *MyModule) Example(ctx context.Context, repo string, tag string, keywords []string) string {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
UpdatedAt(ctx)
}
@function
async def example(repo: str, tag: str, keywords: List[str]) -> str:
return await (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.updated_at()
)
@func()
async example(repo: string, tag: string, keywords: string[]): Promise<string> {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.updatedAt()
}
file() 🔗
Return Type
File !
Example
dagger -m github.com/jedevc/daggerverse/github-release@41eaf95c234d44e69e9c20c00099d4d6be7d1ace call \
get --repo string --tag string \
find-asset --keywords string1 --keywords string2 \
file
func (m *MyModule) Example(repo string, tag string, keywords []string) *dagger.File {
return dag.
GithubRelease().
Get(repo, tag).
FindAsset(keywords).
File()
}
@function
def example(repo: str, tag: str, keywords: List[str]) -> dagger.File:
return (
dag.github_release()
.get(repo, tag)
.find_asset(keywords)
.file()
)
@func()
example(repo: string, tag: string, keywords: string[]): File {
return dag
.githubRelease()
.get(repo, tag)
.findAsset(keywords)
.file()
}