Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Apr 8, 2024
1 parent 582a243 commit 4c7f424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/new-rc-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@ jobs:
id: set_version
run: |
chmod +x ./scripts/generate-rc-version.sh
VERSION=$(./scripts/generate-rc-version.sh ${{ github.ref }})
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Display Version
run: |
echo "App Version: ${{ steps.set_version.outputs.version }}"
./scripts/generate-rc-version.sh ${{ github.ref }}
2 changes: 2 additions & 0 deletions scripts/generate-rc-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ BRANCH_NAME=$1
# Extract version number from the branch name
VERSION=$(echo $BRANCH_NAME | grep -oP 'release\/\K\d+\.\d+\.\d+')

echo "Version: $VERSION"

# Check if there are any releases matching the branch's version pattern
RELEASES=$(git tag --list "$VERSION-rc*" | sort -V)

Expand Down

0 comments on commit 4c7f424

Please sign in to comment.