Skip to content

Latest commit

 

History

History

prerelease

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

GitHub Action Pre-release

Description

GitHub Action that produces a new pre-release (snapshot) of a golang based repository.

Inputs

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

Outputs

name description
version

Version of the project

Outputs

parameter description
version Version of the project

Runs

This action is a composite action.

Usage

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 }}