mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 23:21:03 -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 |
|
| 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
|
||||||
|
|
11
action.yml
11
action.yml
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue