Skip to content

Commit

Permalink
Update update-major-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar authored Feb 15, 2024
1 parent 0d9eb2b commit 59dc7fb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/update-major-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
- released
tags-ignore:
- v1.*
- v2.*
- v3.*
- 1.*
- 2.*
- 3.*
workflow_dispatch:
inputs:
target:
Expand All @@ -17,8 +22,7 @@ on:
type: choice
description: The major version to update
options:
- v3
- v2
- "4"

permissions: write-all

Expand All @@ -40,8 +44,8 @@ jobs:
run: |
TAG=${{ github.event.release.tag_name }}
echo "full_version=${TAG}" >> $GITHUB_OUTPUT
echo "major_version=${TAG:0:2}" >> $GITHUB_OUTPUT
echo "full_version=v${TAG}" >> $GITHUB_OUTPUT
echo "major_version=v${TAG:0:1}" >> $GITHUB_OUTPUT
- name: Show versions
run: |
Expand Down

0 comments on commit 59dc7fb

Please sign in to comment.