Skip to content

Commit 30c054d

Browse files
committed
chore: uncomment workflow code
1 parent 8c9d2b3 commit 30c054d

File tree

1 file changed

+26
-30
lines changed

1 file changed

+26
-30
lines changed

.github/workflows/update-version.yml

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
name: "Update version in package.json"
33

44
on:
5-
push:
6-
# workflow_dispatch:
7-
# inputs:
8-
# version:
9-
# description: 'Version to update to (e.g. 1.20.0)'
10-
# required: true
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: 'Version to update to (e.g. 1.20.0)'
9+
required: true
1110

1211
jobs:
1312
update:
@@ -29,9 +28,6 @@ jobs:
2928
exit 1
3029
fi
3130
32-
- name: Echo SdkVersionHelper
33-
run: echo "$(cat ./src/Packages/Passport/Runtime/Scripts/Private/Helpers/SdkVersionInfoHelpers.cs)"
34-
3531
- name: Set up Python
3632
uses: actions/setup-python@v4
3733
with:
@@ -40,26 +36,26 @@ jobs:
4036
- name: Install jq
4137
run: sudo apt-get install -y jq
4238

43-
# - name: Replace version string
44-
# id: replace_version
45-
# run: |
46-
# FILE=./src/Packages/Passport/package.json
47-
# VERSION=${{ github.event.inputs.version }}
48-
# jq --arg version "$VERSION" '.version = $version' $FILE > tmp.$$.json && mv tmp.$$.json $FILE
39+
- name: Replace version string
40+
id: replace_version
41+
run: |
42+
FILE=./src/Packages/Passport/package.json
43+
VERSION=${{ github.event.inputs.version }}
44+
jq --arg version "$VERSION" '.version = $version' $FILE > tmp.$$.json && mv tmp.$$.json $FILE
4945
50-
# - name: Replace engine sdk version string
51-
# id: replace_engine_sdk_version
52-
# run: |
53-
# FILE=./src/Packages/Passport/Runtime/Scripts/Private/Helpers/SdkVersionInfoHelpers.cs
54-
# VERSION=${{ github.event.inputs.version }}
55-
# sed -i -E "s/[0-9]+\.[0-9]+\.[0-9]+/$VERSION/g" $FILE
46+
- name: Replace engine sdk version string
47+
id: replace_engine_sdk_version
48+
run: |
49+
FILE=./src/Packages/Passport/Runtime/Scripts/Private/Helpers/SdkVersionInfoHelpers.cs
50+
VERSION=${{ github.event.inputs.version }}
51+
sed -i -E "s/[0-9]+\.[0-9]+\.[0-9]+/$VERSION/g" $FILE
5652
57-
# - uses: gr2m/create-or-update-pull-request-action@v1
58-
# env:
59-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
# with:
61-
# title: "release: update version"
62-
# body: "Update version in package.json"
63-
# branch: "release/update-version"
64-
# commit-message: "release: update version"
65-
# labels: release
53+
- uses: gr2m/create-or-update-pull-request-action@v1
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
with:
57+
title: "release: update version"
58+
body: "Update version in package.json"
59+
branch: "release/update-version"
60+
commit-message: "release: update version"
61+
labels: release

0 commit comments

Comments
 (0)