Skip to content

Commit

Permalink
Update release-v2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev authored Nov 15, 2023
1 parent 3845d0c commit 407a949
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ jobs:
run: |
sudo apt-get install xmlstarlet
current_version=$(xmlstarlet sel -N pom=http://maven.apache.org/POM/4.0.0 -t -v "/pom:project/pom:version" pom.xml)
echo "Current version is \`current_version\`" >> $GITHUB_STEP_SUMMARY
echo "Current version is \`$current_version\`" >> $GITHUB_STEP_SUMMARY
current_version="current-version=$current_version"
echo "$current_version"
echo "$current_version" >> "$GITHUB_OUTPUT"
validate-current-version:
runs-on: ubuntu-latest
needs: get-current-version
if: github.event.inputs.release_type != 'provided'
steps:
- name: Validate current version
env:
CURRENT_VERSION: 1.2.3a
CURRENT_VERSION: 1.2.3-a
run: |
if [[ ! $CURRENT_VERSION =~ ^([[:digit:]]+\.){2}[[:digit:]]+([\.-].+)?$ ]]
then
Expand Down

0 comments on commit 407a949

Please sign in to comment.