Skip to content

Commit

Permalink
Changes to understand in which branch we're
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielDemarco committed Aug 7, 2024
1 parent a704a5d commit 7d8fb2e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,25 @@ jobs:
- extractor
env:
RC_VERSION: ${{ needs.extractor.outputs.rc_version }}
IS_PRODUCTION_READY: ${{ needs.extractor.outputs.is_production_ready }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Determine base branch for the tag
if: env.IS_PRODUCTION_READY == 'true'
run: |
TAG_COMMIT=$(git rev-list -n 1 $RC_VERSION)
BASE_BRANCH=$(git branch -r --contains $TAG_COMMIT | head -n 1 | sed 's|origin/||')
echo "BASE_BRANCH=$BASE_BRANCH" >> $GITHUB_ENV
- name: Checkout base branch
if: env.IS_PRODUCTION_READY == 'true'
run: |
git checkout $BASE_BRANCH
- name: Bump Version
run: |
echo "Bumping version to '$RC_VERSION'"
Expand Down

0 comments on commit 7d8fb2e

Please sign in to comment.