Skip to content

Commit

Permalink
Update Version.gd automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard authored Nov 29, 2023
1 parent 8535b09 commit 1fb2332
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ jobs:
- name: Extract Version & Determine Patch
id: version_info
run: |
MAJOR_MINOR=$(grep "const VERSION" Autoload/Constants.gd | awk -F\" '{print $2}')
MAJOR_MINOR=$(grep "var major_minor" Autoload/Version.gd | awk -F\" '{print $2}')
PATCH=$(git rev-list --count HEAD)
FULL_VERSION="$MAJOR_MINOR.$PATCH"
echo "FULL_VERSION=$FULL_VERSION" >>$GITHUB_OUTPUT
- name: Update Version in Godot Script
run: |
sed -i "s/var patch = .*/var patch = \"$PATCH\"/" Autoload/Version.gd
- name: Setup Godot and Export Templates
run: |
wget -q https://downloads.tuxfamily.org/godotengine/3.5.3/Godot_v3.5.3-stable_linux_headless.64.zip
Expand Down

0 comments on commit 1fb2332

Please sign in to comment.