Skip to content

update workflows (#12) #19

update workflows (#12)

update workflows (#12) #19

Workflow file for this run

name: Generate-Tag
on:
push:
branches:
- master
jobs:
generate-tag:
name: Generate tag
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Check out code
uses: actions/checkout@master
with:
fetch-depth: '0'
- name: Checkout github-tag-action
uses: actions/checkout@v3
with:
repository: ${{ vars.GENERATE_TAG_REPO || 'anothrNick/github-tag-action' }}
ref: ${{ vars.GENERATE_TAG_REF || '1.62.0' }}
path: ./.github/action${{ vars.GENERATE_TAG_PATH || '/github-tag-action/' }}
token: ${{ vars.GENERATE_TAG_SECRET && secrets[vars.GENERATE_TAG_SECRET] || secrets.GITHUB_TOKEN }}
# Generate tag if commit message contains #major or #patch or #patch
- name: Bump version and push tag
id: generate_tag
uses: ./.github/action/github-tag-action
env:
# An action in a workflow run can't trigger a new workflow run.
# When you use GITHUB_TOKEN in your actions, all of the interactions
# with the repository are on behalf of the Github-actions bot.
# The operations act by Github-actions bot cannot trigger a new workflow run.
# More details: https://help.github.com/en/actions/reference/events-that-trigger-workflows#about-workflow-events
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true