Skip to content

Commit 7877d83

Browse files
committed
Replace github.event usage with top-level env variables
1 parent 75e7ec8 commit 7877d83

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/post_release_version_bump.yml

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

3030
- name: Extract Major.Minor Version and setup Env variable
3131
run: |
32-
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
33-
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
32+
# VERSION already set at top level
33+
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
3434
3535
- name: Get current major.minor version from main branch
3636
id: get_version
@@ -87,8 +87,8 @@ jobs:
8787
8888
- name: Extract Major.Minor Version and setup Env variable
8989
run: |
90-
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
91-
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
90+
# VERSION already set at top level
91+
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
9292
9393
- name: Determine release branch and checkout
9494
run: |

.github/workflows/pre_release_prepare.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
5555
- name: Extract Major.Minor Version and setup Env variable
5656
run: |
57-
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
58-
echo "MAJOR_MINOR=$(echo ${{ github.event.inputs.version }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
57+
# VERSION already set at top level
58+
echo "MAJOR_MINOR=$(echo ${{ env.VERSION }} | sed -E 's/([0-9]+\.[0-9]+)\.[0-9]+/\1/')" >> $GITHUB_ENV
5959
6060
- name: Create branches
6161
run: |

0 commit comments

Comments
 (0)