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

View file

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