Generate tag version #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/generate-version.yml | |
name: Generate tag version | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: New version | |
required: true | |
default: "patch" | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Git | |
run: | | |
git remote set-url origin https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/thepuskar/react-masonify.git | |
- name: Push changes | |
run: git push origin main --tags | |
env: | |
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} |