Skip to content

Commit c51648c

Browse files
committed
fix: revert circular env reference in GITHUB_ENV assignments
1 parent 9b68af7 commit c51648c

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
@@ -23,8 +23,8 @@ jobs:
2323

2424
- name: Extract Major.Minor Version and setup Env variable
2525
run: |
26-
echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
27-
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
26+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
27+
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
2828
2929
- name: Get current major.minor version from main branch
3030
id: get_version
@@ -66,8 +66,8 @@ jobs:
6666
6767
- name: Extract Major.Minor Version and setup Env variable
6868
run: |
69-
echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
70-
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
69+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
70+
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
7171
7272
- name: Determine release branch and checkout
7373
run: |

.github/workflows/pre_release_prepare.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
3333
- name: Extract Major.Minor Version and setup Env variable
3434
run: |
35-
echo "VERSION=${{ env.VERSION }}" >> $GITHUB_ENV
36-
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
35+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
36+
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
3737
3838
- name: Create branches
3939
run: |
40-
IS_PATCH=${{ env.IS_PATCH }}
40+
IS_PATCH=${{ github.event.inputs.is_patch }}
4141
if [[ "$IS_PATCH" != "true" && "$IS_PATCH" != "false" ]]; then
4242
echo "Invalid input for IS_PATCH. Must be 'true' or 'false'."
4343
exit 1

0 commit comments

Comments
 (0)