name: 'Setup Forgejo' author: 'Forgejo authors' description: 'Setup Forgejo and a runner' inputs: image: description: 'Container image' default: 'codeberg.org/forgejo/forgejo' image-version: description: 'Container image version' default: '1.19' user: description: 'Administrator user name' default: 'root' password: description: 'Administrator password' default: 'admin1234' runner: description: 'Runner git repository' default: 'https://code.forgejo.org/fogejo/runner' runner-version: description: 'Runner version' default: 'v1.4.1' outputs: url: description: "URL" value: ${{ steps.forgejo.outputs.url }}" token: description: "Application token" value: ${{ steps.forgejo.outputs.token }}" runs: using: "composite" steps: - run: echo "${{ github.action_path }}" >> $GITHUB_PATH shell: bash - id: forgejo run: | cd $(mktemp -d) dependencies.sh forgejo.sh setup ${{ inputs.user }} "${{ inputs.password }}" ${{ inputs.image }}:${{ inputs.image-version }} forgejo-runner.sh setup echo url="http://$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT shell: bash