"Oction" is a GitHub Action that implements a single call with @octokit/request allowing easy interaction with GitHub REST APIs from your workflow.
Original documentation: https://developer.github.com/v3/repos/releases/#create-a-release
This action implements POST
request to /repos/{owner}/{repo}/releases
- uses: maxkomarychev/oction-create-release@v0.7.1
id: my_step_id
with:
token: <token value>
tag_name: <tag_name value>
- name: Print outputs
run: |
echo ${{ steps.my_step_id.outputs.id }}
echo ${{ steps.my_step_id.outputs.number }}
Name | Is required | Description |
---|---|---|
token | true | Token to authenticate the request |
owner | false | owner parameter |
repo | false | repo parameter |
tag_name | true | The name of the tag. |
target_commitish | false | Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually master ). |
name | false | The name of the release. |
body | false | Text describing the contents of the tag. |
draft | false | true to create a draft (unpublished) release, false to create a published one. |
prerelease | false | true to identify the release as a prerelease. false to identify the release as a full release. |
Name | Description |
---|---|
id | id field of the response (if exists) |
number | number field of the response (if exists) |