File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
Source/Immutable/Public/Immutable Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 6
6
7
7
#include "ImmutableDataTypes.generated.h"
8
8
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")
9
12
10
13
USTRUCT ()
11
14
struct FImmutableEngineVersionData
@@ -15,6 +18,9 @@ struct FImmutableEngineVersionData
15
18
UPROPERTY ()
16
19
FString engine = TEXT ("unreal ");
17
20
21
+ UPROPERTY ()
22
+ FString engineSdkVersion = ENGINE_SDK_VERSION ;
23
+
18
24
// cannot have spaces
19
25
UPROPERTY ()
20
26
FString engineVersion = FEngineVersion ::Current ().ToString ().Replace (TEXT (" "), TEXT ("_ "));
@@ -266,4 +272,4 @@ struct IMMUTABLE_API FZkEvmTransactionReceipt
266
272
267
273
UPROPERTY ()
268
274
FString type ;
269
- };
275
+ };
You can’t perform that action at this time.
0 commit comments