From f68182a23923b68254a13342253a4fbd9df958f6 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 25 Mar 2023 23:15:29 +0100 Subject: [PATCH] add user/password inputs --- action.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 792778f..840396d 100644 --- a/action.yml +++ b/action.yml @@ -8,6 +8,12 @@ inputs: image-version: description: 'Container image version' default: '1.19' + user: + description: 'Administrator user name' + default: 'root' + password: + description: 'Administrator password' + default: 'admin1234' runner: description: 'Runner git repository' default: 'https://code.forgejo.org/fogejo/runner' @@ -18,6 +24,9 @@ outputs: url: description: "URL" value: ${{ steps.forgejo.outputs.url }}" + token: + description: "Application token" + value: ${{ steps.forgejo.outputs.token }}" runs: using: "composite" steps: @@ -26,7 +35,8 @@ runs: - id: forgejo run: | dependencies.sh - forgejo.sh setup root admin1234 ${{ inputs.image }}:${{ inputs.image-version }} + forgejo.sh setup ${{ inputs.user }} "${{ inputs.password }}" ${{ inputs.image }}:${{ inputs.image-version }} forgejo-runner.sh setup echo url="http://$(cat forgejo-ip):3000" >> $GITHUB_OUTPUT + echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT shell: bash