1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
name: Get version description: Get version of godot from version.py runs: using: "composite" steps: - name: Setup uses: bend-n/godot-builds/.github/actions/setup@main with: ref: ${{ env.ref }} - name: Setup Python uses: actions/setup-python@v2 - name: Get version run: | cd godot echo 'print(f"{major}.{minor}")' >> version.py echo "version-name=$(python version.py)" >> $GITHUB_ENV version=$(python version.py) git checkout version.py echo 'print(status)' >> version.py echo "release=$(python version.py)" >> $GITHUB_ENV release=$(python version.py) echo "#### ${version}.${release} :rocket:" >> $GITHUB_STEP_SUMMARY shell: bash - name: Post get version if: always() run: rm -rf godot shell: bash