tools for exporting godot projects via Github Actions
better versioning
| -rw-r--r-- | .github/actions/setup-godot/action.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/actions/setup-godot/action.yml b/.github/actions/setup-godot/action.yml index 5578d2d..4264db4 100644 --- a/.github/actions/setup-godot/action.yml +++ b/.github/actions/setup-godot/action.yml @@ -18,13 +18,14 @@ runs: if: steps.clean.outputs.clean == 'true' uses: actions/checkout@v3 with: + fetch-depth: 0 lfs: true submodules: recursive - name: Setup run: | echo "::group::Setup godot" git config --global --add safe.directory $(pwd) - git rev-parse --short HEAD > version || true + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" > version mkdir -v -p ~/.local/share/godot/templates [[ -z $RELEASE ]] && RELEASE=stable mv /root/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} ~/.local/share/godot/templates/${GODOT_VERSION}.${RELEASE} |