Skip to content

Create new tag

Create new tag #104

name: Create new tag
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag (example v0.1.5)'
required: true
permissions:
contents: write
jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ github.event.inputs.tag }}',
sha: context.sha
})