From 5fa574b352a04536d2dbb8f261ff6729bb353e47 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Wed, 2 Aug 2023 20:51:22 +0200 Subject: [PATCH] GH: Apply custom version to the builds --- .github/actions/init-version/action.yml | 6 ++++++ .github/workflows/android.yml | 3 +++ .github/workflows/ios.yml | 3 +++ .github/workflows/macos.yml | 3 +++ 4 files changed, 15 insertions(+) diff --git a/.github/actions/init-version/action.yml b/.github/actions/init-version/action.yml index 8b2d392..089e289 100644 --- a/.github/actions/init-version/action.yml +++ b/.github/actions/init-version/action.yml @@ -13,3 +13,9 @@ runs: - name: Set NAME_PREFIX shell: bash run: echo "NAME_PREFIX=godot-${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" >> "$GITHUB_ENV" + + - name: Set GODOT_VERSION_STATUS & BUILD_NAME + shell: bash + run: | + echo "GODOT_VERSION_STATUS=limboai+${LIMBOAI_VERSION}" >> "$GITHUB_ENV" + echo "BUILD_NAME=gha" >> "$GITHUB_ENV" diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ddd2267..8c57104 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -85,6 +85,9 @@ jobs: path: modules/limboai ref: ${{ inputs.limboai-treeish }} + # Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables. + - uses: ./modules/limboai/.github/actions/init-version + - name: Set up Java 11 uses: actions/setup-java@v3 with: diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index fba74d6..4db9047 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -89,6 +89,9 @@ jobs: path: modules/limboai ref: ${{ inputs.limboai-treeish }} + # Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables. + - uses: ./modules/limboai/.github/actions/init-version + - name: Set up Python 3.x uses: actions/setup-python@v4 with: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 504114d..2651bd7 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -132,6 +132,9 @@ jobs: path: modules/limboai ref: ${{ inputs.limboai-treeish }} + # Inits GODOT_VERSION, LIMBOAI_VERSION and NAME_PREFIX environment variables. + - uses: ./modules/limboai/.github/actions/init-version + - name: Set up Python 3.x uses: actions/setup-python@v4 with: