Skip to content

Commit

Permalink
Merge pull request #21 from kishaningithub/add-tag-creation-pipeline
Browse files Browse the repository at this point in the history
Add workflow for tag creation
  • Loading branch information
kishaningithub committed May 7, 2024
2 parents 8d50535 + 06b8380 commit f1d13d6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create tag

on:
workflow_dispatch:
inputs:
tag:
type: string
description: Name of the tag (Eg v1.0.0)

jobs:
create-tag:
name: Create tag
if: ${{ inputs.tag != '' }}
runs-on: ubuntu-latest
steps:
- name: Checkout branch "main"
uses: actions/checkout@v4
with:
ref: 'main'
fetch-depth: 0
fetch-tags: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create tag ${{ inputs.tag }}
run: |
git tag ${{ inputs.tag }}
git push --tags

0 comments on commit f1d13d6

Please sign in to comment.