16 lines
611 B
YAML
16 lines
611 B
YAML
|
name: Setup version
|
||
|
|
||
|
runs:
|
||
|
using: "composite"
|
||
|
steps:
|
||
|
- name: Set GODOT_VERSION & LIMBOAI_VERSION
|
||
|
shell: bash
|
||
|
run: |
|
||
|
echo "GODOT_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1/g' )" >> "$GITHUB_ENV"
|
||
|
cd modules/limboai
|
||
|
echo "LIMBOAI_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1/g' )" >> "$GITHUB_ENV"
|
||
|
|
||
|
- name: Set NAME_PREFIX
|
||
|
shell: bash
|
||
|
run: echo "NAME_PREFIX=godot-${GODOT_VERSION}.limboai+${LIMBOAI_VERSION}" >> "$GITHUB_ENV"
|