Skip to content

Release Drafter Manual #14

Release Drafter Manual

Release Drafter Manual #14

name: Release Drafter Manual
on:
workflow_dispatch:
inputs:
target:
description: 'Project name to run'
required: true
type: choice
options:
- remote
- client-owner
- measurement
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
create-draft-release:
runs-on: ubuntu-latest
steps:
- name: Generate Calendar Version
id: calver
run: echo "version=$(date +'%Y%m%d.%H%M%S')" >> $GITHUB_OUTPUT
env:
TZ: "Asia/Tokyo"
- name: '[Remote] Draft release'
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0
if: ${{ inputs.target == 'remote' }}
with:
config-name: release-drafter-remote.yml
name: remote_${{ needs.create-version.outputs.version }}_release
tag: remote_${{ needs.create-version.outputs.version }}_release
- name: '[Client Owner] Draft release'
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0
if: ${{ inputs.target == 'client-owner' }}
with:
config-name: release-drafter-client-owner.yml
name: client-owner_${{ needs.create-version.outputs.version }}_release
tag: client-owner_${{ needs.create-version.outputs.version }}_release
- name: '[Measurement] Draft release'
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0
if: ${{ inputs.target == 'measurement' }}
with:
config-name: release-drafter-measurement.yml
name: measurement_${{ needs.create-version.outputs.version }}_release
tag: measurement_${{ needs.create-version.outputs.version }}_release