Skip to content

Commit

Permalink
create github action workflow for auto tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
snigdhasjg committed Oct 2, 2023
1 parent afcbdf9 commit 8d4ad94
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tagging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tagging

on:
push:
branches:
- main

concurrency: tagging

jobs:
tag:
runs-on: ubuntu-latest
name: Auto Tagging
permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Get package information
id: package_info
run: |
echo "version=$(./setup.py --version)" >> "$GITHUB_OUTPUT"
- name: Add git tag
run: |
git tag ${{ steps.package_info.outputs.version }} -f
git push origin ${{ steps.package_info.outputs.version }} -f

0 comments on commit 8d4ad94

Please sign in to comment.