Skip to content

Commit 1075b68

Browse files
feat: [DX-2897]: add engine sdk version (#89)
* feat: dx-2897 add engine SDK tag version * feat: add workflow to update the engine sdk version Co-authored-by: Nik Ho <[email protected]>
1 parent 11a856d commit 1075b68

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/update-version.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: "Update engine SDK version in Immutable Data Types"
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: 'Version to update to (e.g. 1.20.0)'
9+
required: true
10+
11+
jobs:
12+
update:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
# - name: Check team membership
19+
# id: check_team
20+
# run: |
21+
# IS_MEMBER=$(./.github/scripts/check_team_membership.sh "${{ github.actor }}" "${{ secrets.GITHUB_TOKEN }}")
22+
# if [[ "$IS_MEMBER" != "true" ]]; then
23+
# echo "Not a member of the SDK team, skipping update"
24+
# exit 1
25+
# fi
26+
27+
- name: Replace engine sdk version string
28+
id: replace_engine_sdk_version
29+
run: |
30+
FILE=./Source/Immutable/Public/Immutable/ImmutableDataTypes.h
31+
VERSION=${{ github.event.inputs.version }}
32+
sed -i -E "s/#define ENGINE_SDK_VERSION TEXT\(\"[0-9]+\.[0-9]+\.[0-9]+\"\)/#define ENGINE_SDK_VERSION TEXT(\"$VERSION\")/g" $FILE

Source/Immutable/Public/Immutable/ImmutableDataTypes.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
#include "ImmutableDataTypes.generated.h"
88

9+
// This is the version of the Unreal Immutable SDK that is being used. This is not the version of the engine.
10+
// This hardcoded value will be updated by a workflow during the release process.
11+
#define ENGINE_SDK_VERSION TEXT("1.2.4")
912

1013
USTRUCT()
1114
struct FImmutableEngineVersionData
@@ -15,6 +18,9 @@ struct FImmutableEngineVersionData
1518
UPROPERTY()
1619
FString engine = TEXT("unreal");
1720

21+
UPROPERTY()
22+
FString engineSdkVersion = ENGINE_SDK_VERSION;
23+
1824
// cannot have spaces
1925
UPROPERTY()
2026
FString engineVersion = FEngineVersion::Current().ToString().Replace(TEXT(" "), TEXT("_"));
@@ -266,4 +272,4 @@ struct IMMUTABLE_API FZkEvmTransactionReceipt
266272

267273
UPROPERTY()
268274
FString type;
269-
};
275+
};

0 commit comments

Comments
 (0)