Skip to content

Add tagging action

Add tagging action #4

Workflow file for this run

name: Tag Repo
on:
pull_request:
workflow_dispatch:
inputs:
commit_sha:
description: 'Commit SHA'
required: true
default: 'HEAD'
release_number:
description: 'The number for this release e.g. v1.2.3'
required: true
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Tag the repo
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git tag -a ${{ github.event.inputs.release_number }} -m "Release ${{ github.event.inputs.release_number }}"
git push origin ${{ github.event.inputs.release_number }}