add the runner-logs output

This commit is contained in:
Earl Warren 2023-03-27 17:36:59 +02:00
parent e6bb54498c
commit 0bc6cdef11
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 12 additions and 6 deletions

View file

@ -27,9 +27,10 @@ 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 |
| url | URL of the Forgejo instance |
| host-port | Host and port of the Forgejo instance, e.g 172.0.17.2:3000 |
| token | Administrator application token with all,sudo scopes |
| runner-logs | Filename of the Forgejo runner logs |
<!-- action-docs-outputs -->
## Example

View file

@ -22,14 +22,18 @@ inputs:
default: 'v1.4.1'
outputs:
url:
description: "URL"
description: "URL of the Forgejo instance"
value: "${{ steps.forgejo.outputs.url }}"
host-port:
description: "Host and port, e.g 172.0.17.2:3000"
description: "Host and port of the Forgejo instance, e.g 172.0.17.2:3000"
value: "${{ steps.forgejo.outputs.host-port }}"
token:
description: "Application token"
description: "Administrator application token with all,sudo scopes"
value: "${{ steps.forgejo.outputs.token }}"
runner-logs:
description: "Filename of the Forgejo runner logs"
value: "${{ steps.forgejo.outputs.runner-logs }}"
runs:
using: "composite"
steps:
@ -44,4 +48,5 @@ runs:
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
echo runner-logs="$(pwd)/forgejo-runner.log" >> $GITHUB_OUTPUT
shell: bash