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 34
name: "Setup" description: "Setup the environment for building" inputs: repo: description: Godot github owner/repo default: godotengine/godot required: true ref: description: Which ref to build required: true runs: using: "composite" steps: - name: Check if clean id: clean run: | if [[ -d godot ]]; then echo "::set-output name=clean::false"; else echo "::set-output name=clean::true"; fi shell: bash - uses: actions/checkout@v3 if: steps.clean.outputs.clean == 'true' with: repository: ${{ inputs.repo }} ref: ${{ inputs.ref }} path: "godot" - name: Get module data if: steps.clean.outputs.clean == 'true' run: | curl "${{ env.modules }}" --output godot/custom.py || wget -nv "$modules" -O godot/custom.py shell: bash