Skip to content

Commit 5d5a111

Browse files
committed
Use ENV to pass in version value
1 parent 92b7342 commit 5d5a111

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ jobs:
5252

5353
- name: Prepare for release metadata
5454
shell: bash
55+
env:
56+
NEW_VERSION: ${{ steps.snapshotVersions.new_snapshot_version }}
57+
CUR_SNAPSHOT_VERSION: ${{ steps.snapshotVersions.cur_snapshot_version }}
5558
run: |
56-
sed -i.bak "s/${{ steps.snapshotVersions.cur_snapshot_version }}/${{ steps.snapshotVersions.new_snapshot_version }}/g" gradle.properties
59+
sed -i.bak "s/${CUR_SNAPSHOT_VERSION}/${NEW_VERSION}/g" gradle.properties
5760
5861
- name: Commit gradle.properties and set tag for v${{ inputs.version }}
5962
uses: IABTechLab/uid2-shared-actions/actions/commit_pr_and_merge@v2

0 commit comments

Comments
 (0)