mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 21:30:55 -05:00
add the runner-logs output
This commit is contained in:
parent
e6bb54498c
commit
0bc6cdef11
2 changed files with 12 additions and 6 deletions
|
@ -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
|
||||
|
|
11
action.yml
11
action.yml
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue