semantic-release
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/BCIT-LTC/daggerverse/semantic-release@b4d21229fba23e5751fc520d5bcce57aac0891f4
Entrypoint
Return Type
SemanticRelease !
Example
dagger -m github.com/BCIT-LTC/daggerverse/semantic-release@b4d21229fba23e5751fc520d5bcce57aac0891f4 call \
func (m *myModule) example() *dagger.SemanticRelease {
return dag.
SemanticRelease()
}
@function
def example() -> dagger.SemanticRelease:
return (
dag.semantic_release()
)
@func()
example(): SemanticRelease {
return dag
.semanticRelease()
}
Types
SemanticRelease 🔗
run() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory | - | Source directory |
githubToken | Secret ! | - | Github Token |
username | String ! | - | Github Username |
branch | String ! | "main" | Branch |
Example
dagger -m github.com/BCIT-LTC/daggerverse/semantic-release@b4d21229fba23e5751fc520d5bcce57aac0891f4 call \
run --github-token env:MYSECRET --username string --branch string
func (m *myModule) example(ctx context.Context, githubToken *dagger.Secret, username string, branch string) {
return dag.
SemanticRelease().
Run(ctxgithubToken, username, branch)
}
@function
async def example(github_token: dagger.Secret, username: str, branch: str) -> None:
return await (
dag.semantic_release()
.run(github_token, username, branch)
)
@func()
async example(githubToken: Secret, username: string, branch: string): Promise<void> {
return dag
.semanticRelease()
.run(githubToken, username, branch)
}