Skip to content

Create new tag

Create new tag #72

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@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ github.event.inputs.tag }}',
sha: context.sha
})