Skip to content

Create new tag

Create new tag #56

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@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.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
})