Skip to content

Publish trigger

Publish trigger #11

name: "Publish trigger"
permissions:
contents: write
on:
workflow_dispatch: # allows manual triggering
inputs:
level:
description: 'release version level'
required: true
default: 'alpha'
type: choice
options:
- alpha
- beta
- rc
- patch
- minor
- major
jobs:
call-workflow-passing-data:
uses: RibirX/rclog/.github/workflows/release-version.yml@main
with:
level: ${{ github.event.inputs.level }}
ref: ${{ github.ref }}
merge_changelog: ${{ github.event.inputs.level == 'patch'|| github.event.inputs.level == 'minor' || github.event.inputs.level == 'major' }}
secrets:
CRATE_RELEASE_TOKEN: ${{ secrets.CRATE_RELEASE_TOKEN }}
GITHUB_RELEASE_TOKEN: ${{ secrets.RELEASE_VERSION }}