Skip to content

Commit eb0bdcc

Browse files
authored
Merge pull request #783 from immutable/feat/fix-audience-version-sync
fix(audience): sync Constants.cs LibraryVersion in update-version workflow
2 parents 97c6dd4 + b0118c2 commit eb0bdcc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/update-version.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ jobs:
121121
sed -i -E "s/[0-9]+\.[0-9]+\.[0-9]+/$NEW_VERSION/g" $FILE
122122
echo "Updated SDK version in SdkVersionInfoHelpers.cs to $NEW_VERSION"
123123
124+
- name: Update LibraryVersion in Constants.cs
125+
if: env.PACKAGE == 'audience'
126+
run: |
127+
FILE=./src/Packages/Audience/Runtime/Core/Constants.cs
128+
NEW_VERSION="${{ steps.replace_version.outputs.version }}"
129+
sed -i -E "s/LibraryVersion = \"[0-9]+\.[0-9]+\.[0-9]+\"/LibraryVersion = \"$NEW_VERSION\"/" $FILE
130+
echo "Updated LibraryVersion in Constants.cs to $NEW_VERSION"
131+
124132
- name: Ensure Samples~/SamplesScenesScripts directory exists and clear contents
125133
if: env.PACKAGE == 'passport'
126134
run: |

0 commit comments

Comments
 (0)