Skip to content

Create new tag

Create new tag #16

# SPDX-FileCopyrightText: 2023 Mercedes-Benz Tech Innovation GmbH
#
# SPDX-License-Identifier: MIT
name: Create new tag
on:
workflow_dispatch:
inputs:
tag:
description: "Create a tag"
required: true
jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ github.event.inputs.tag }}',
sha: context.sha
})