Skip to content

Commit 0fdb9df

Browse files
committed
fix: revert circular env reference in GITHUB_ENV assignments
1 parent 8da94c5 commit 0fdb9df

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/post_release_version_bump.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131

3232
- name: Extract Major.Minor Version and setup Env variable
3333
run: |
34-
echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
35-
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
34+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
35+
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
3636
3737
- name: Get current major.minor version from main branch
3838
id: get_version
@@ -89,8 +89,8 @@ jobs:
8989
9090
- name: Extract Major.Minor Version and setup Env variable
9191
run: |
92-
echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
93-
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
92+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
93+
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
9494
9595
- name: Determine release branch and checkout
9696
run: |

.github/workflows/pre_release_prepare.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ jobs:
5959
6060
- name: Extract Major.Minor Version and setup Env variable
6161
run: |
62-
echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
63-
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
62+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
63+
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
6464
6565
- name: Create branches
6666
run: |
67-
IS_PATCH=${{ env.IS_PATCH }}
67+
IS_PATCH=${{ github.event.inputs.is_patch }}
6868
if [[ "$IS_PATCH" != "true" && "$IS_PATCH" != "false" ]]; then
6969
echo "Invalid input for IS_PATCH. Must be 'true' or 'false'."
7070
exit 1

0 commit comments

Comments
 (0)