From 0bc6cdef11718fd4b62860f6f5e71e558f748199 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 27 Mar 2023 17:36:59 +0200 Subject: [PATCH] add the runner-logs output --- README.md | 7 ++++--- action.yml | 11 ++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ad5bd3c..f342ed2 100644 --- a/README.md +++ b/README.md @@ -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 | ## Example diff --git a/action.yml b/action.yml index ec9855a..5e8ab90 100644 --- a/action.yml +++ b/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