GitHub Action that produces a new pre-release (snapshot) of a golang based repository.
name | description | required | default |
---|---|---|---|
checkout-repo |
Perform checkout as first step of action |
false |
true |
checkout-fetch-depth |
The number of commits to fetch. 0 indicates all history for all branches and tags |
false |
0 |
create-prerelease |
Whether semantic-release should create a prerelease or do a dry run. This can be useful to set to true when a prerelease requires pushing artifacts semantic-release is in charge of generating |
false |
false |
github-token |
GitHub token that can checkout the consumer repository as well as create tags/releases against it. e.g. 'secrets.GITHUB_TOKEN' |
true |
"" |
docker-username |
Docker username to push the prerelease image to the registry |
false |
"" |
docker-password |
Docker password to push the prerelease image to the registry |
false |
"" |
extra-plugins |
Extra plugins for pre-install. You can also specify specifying version range for the extra plugins if you prefer. Defaults to install @open-turo/semantic-release-config. |
false |
@open-turo/semantic-release-config |
name | description |
---|---|
version |
Version of the project |
parameter | description |
---|---|
version | Version of the project |
This action is a composite
action.
name: Prerelease
on:
pull_request:
types:
- opened
- labeled
- synchronize
jobs:
prerelease:
name: Build and push pre-release image
if: contains(github.event.pull_request.labels.*.name, 'prerelease')
steps:
- name: Pre-release
uses: open-turo/actions-go/prerelease@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-docker-snapshot: true
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-password: ${{ secrets.DOCKER_PASSWORD }}