Skip to content

Commit

Permalink
fix: branch version is the destination not source branch
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloc committed Aug 16, 2024
1 parent 05d0f69 commit 8663cab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/update-app-info-version.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash

# Extract version from branch name
BRANCH_NAME=${GITHUB_REF##*/}
VERSION=${BRANCH_NAME#release/}
DESTINATION_BRANCH=$(jq -r .pull_request.base.ref < "${GITHUB_EVENT_PATH}")
echo "Destination branch: $DESTINATION_BRANCH"

VERSION=${DESTINATION_BRANCH#release/}

# Remove the last number from the version (e.g., 3.0.0.1 -> 3.0.0)
BRANCH_VERSION=${VERSION%.*}
Expand Down

0 comments on commit 8663cab

Please sign in to comment.