Merge pull request #4 from kubeshop/devcatalin/feat/caching #6
Workflow file for this run
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
name: Update Major Version | |
on: | |
push: | |
tags: | |
- "v[0-9]+.[0-9]+.[0-9]+" | |
env: | |
git-user: kubeshop-bot | |
git-email: [email protected] | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dawidd6/action-get-tag@v1 | |
name: Get tag | |
id: tag | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "${{ env.git-user }}" | |
git config user.email "${{ env.git-email }}" | |
- name: Create and push major tag | |
run: | | |
TAG="${{ steps.tag.outputs.tag }}" | |
MAJOR="${TAG%%.*}" | |
git tag -f "${MAJOR}" | |
git push -f origin "${MAJOR}" |