Skip to content

Commit 43a0194

Browse files
committed
Use fix outputs from snapshotVersions step
1 parent 92b7342 commit 43a0194

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Prepare for release metadata
5454
shell: bash
5555
run: |
56-
sed -i.bak "s/${{ steps.snapshotVersions.cur_snapshot_version }}/${{ steps.snapshotVersions.new_snapshot_version }}/g" gradle.properties
56+
sed -i.bak "s/${{ steps.snapshotVersions.outputs.cur_snapshot_version }}/${{ inputs.version }}/g" gradle.properties
5757
5858
- name: Commit gradle.properties and set tag for v${{ inputs.version }}
5959
uses: IABTechLab/uid2-shared-actions/actions/commit_pr_and_merge@v2
@@ -70,17 +70,17 @@ jobs:
7070
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
7171
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSPHRASE }}
7272

73-
- name: Prepare next Snapshot version ${{ steps.snapshotVersions.new_snapshot_version }}
73+
- name: Prepare next Snapshot version ${{ steps.snapshotVersions.outputs.new_snapshot_version }}
7474
shell: bash
7575
run: |
76-
echo "Setting next snapshot version ${{ steps.snapshotVersions.new_snapshot_version }}"
77-
sed -i.bak "s/${{ inputs.version }}/${{ steps.snapshotVersions.new_snapshot_version }}/g" gradle.properties
76+
echo "Setting next snapshot version ${{ steps.snapshotVersions.outputs.new_snapshot_version }}"
77+
sed -i.bak "s/${{ inputs.version }}/${{ steps.snapshotVersions.outputs.new_snapshot_version }}/g" gradle.properties
7878
79-
- name: Commit gradle.properties for Snapshot version ${{ steps.snapshotVersions.new_snapshot_version }}
79+
- name: Commit gradle.properties for Snapshot version ${{ steps.snapshotVersions.outputs.new_snapshot_version }}
8080
uses: IABTechLab/uid2-shared-actions/actions/commit_pr_and_merge@v2
8181
with:
8282
add: 'gradle.properties'
83-
message: 'Prepare next development version: ${{ steps.snapshotVersions.new_snapshot_version }}'
83+
message: 'Prepare next development version: ${{ steps.snapshotVersions.outputs.new_snapshot_version }}'
8484

8585
- name: Remove the backup file from sed edits
8686
shell: bash

scripts/get_snapshot_versions.sh

-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ if [ -z "$NEW_SNAPSHOT_VERSION" ]; then
1616
NEW_SNAPSHOT_VERSION=$CUR_SNAPSHOT_VERSION
1717
fi
1818

19-
2019
echo "new_snapshot_version=$NEW_SNAPSHOT_VERSION" >> $GITHUB_OUTPUT
2120
echo "cur_snapshot_version=$CUR_SNAPSHOT_VERSION" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)