Skip to content

🆙bump: release v0.5.1 (#562) #1

🆙bump: release v0.5.1 (#562)

🆙bump: release v0.5.1 (#562) #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
version:
description: "Release version"
required: true
type: string
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'openup-labtakizawa'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check if the tag has already been released
run: |
if [[ $(git tag -l $VERSION) ]]; then
echo TAG_EXISTS=true >> $GITHUB_ENV
fi
- name: Create release
if: env.TAG_EXISTS != 'true'
run: gh release create $VERSION --generate-notes -t "$REPO_NAME $VERSION"
env:
GH_TOKEN: ${{ github.token }}
REPO_NAME: ${{ github.event.repository.name }}
VERSION: ${{ github.event.inputs.version || github.ref_name }}