diff --git a/README.md b/README.md index 2624c74..ad5bd3c 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ It can only be run on the `self-hosted` platform, running on a host with LXC ins | parameter | description | | --- | --- | | url | URL | +| host-port | Host and port, e.g 172.0.17.2:3000 | | token | Application token | @@ -49,3 +50,7 @@ jobs: curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19 ``` + +## Hacking + +* Update the README from the action file with https://github.com/npalm/action-docs `action-docs --update-readme` diff --git a/action.yml b/action.yml index 8cdc795..ec9855a 100644 --- a/action.yml +++ b/action.yml @@ -23,10 +23,13 @@ inputs: outputs: url: description: "URL" - value: ${{ steps.forgejo.outputs.url }}" + value: "${{ steps.forgejo.outputs.url }}" + host-port: + description: "Host and port, e.g 172.0.17.2:3000" + value: "${{ steps.forgejo.outputs.host-port }}" token: description: "Application token" - value: ${{ steps.forgejo.outputs.token }}" + value: "${{ steps.forgejo.outputs.token }}" runs: using: "composite" steps: @@ -39,5 +42,6 @@ runs: 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 host-port="$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT shell: bash