2024-01-11 17:08:55 +00:00
|
|
|
name: Setup version
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Set GDEXTENSION_VERSION & LIMBOAI_VERSION
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd godot-cpp
|
2024-01-11 17:50:52 +00:00
|
|
|
GDEXTENSION_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1/g' )
|
|
|
|
|
|
|
|
if [[ ${GDEXTENSION_VERSION} == godot-* ]]; then
|
|
|
|
GDEXTENSION_VERSION=${GDEXTENSION_VERSION#"godot-"}
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "GDEXTENSION_VERSION=${GDEXTENSION_VERSION}" >> "$GITHUB_ENV"
|
|
|
|
|
2024-01-11 17:08:55 +00:00
|
|
|
cd ../limboai
|
2024-01-16 11:57:54 +00:00
|
|
|
echo "LIMBOAI_VERSION=$( (git describe --tags --exact-match HEAD || git rev-parse --short HEAD) | sed 's/\(.*\)-\(.*\)/\1.\2/g' )" >> "$GITHUB_ENV"
|
2024-01-11 17:08:55 +00:00
|
|
|
|
|
|
|
- name: Set NAME_PREFIX
|
|
|
|
shell: bash
|
2024-01-11 17:50:52 +00:00
|
|
|
run: echo "NAME_PREFIX=gdextension-${GDEXTENSION_VERSION}.limboai+${LIMBOAI_VERSION}" >> "$GITHUB_ENV"
|
2024-01-11 17:08:55 +00:00
|
|
|
|