Skip to content

Create Tag

Create Tag #6

Workflow file for this run

name: Create Tag
on:
workflow_dispatch:
inputs:
version:
description: "New tag"
required: true
jobs:
create-tag:
name: create-tag
runs-on: ubuntu-latest
permissions:
contents: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ github.event.inputs.version }}',
sha: context.sha
})