From e2450fc1f895ab31a9612bd1c30620b855e57e5b Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 23 Jan 2025 13:56:55 +0100 Subject: [PATCH] feat: add dir to outputs & do not checkout - without it figuring out where it runs from is not easy - do not call checkout This is a breaking change for workflows that rely on this action for the checkout --- action.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 830f817..814ee8e 100644 --- a/action.yml +++ b/action.yml @@ -65,6 +65,9 @@ inputs: description: 'Only install Forgejo and the Forgejo runner, do not launch them' default: 'false' outputs: + dir: + description: "Directory from which Forgejo and the runner are launched and configured" + value: "${{ steps.forgejo.outputs.dir }}" url: description: "URL of the Forgejo instance" value: "${{ steps.forgejo.outputs.url }}" @@ -84,9 +87,6 @@ outputs: runs: using: "composite" steps: - - run: echo "${{ github.action_path }}" >> $GITHUB_PATH - shell: bash - - uses: actions/checkout@v4 - id: forgejo run: | cd $(mktemp -d) @@ -111,4 +111,8 @@ runs: echo token=$(cat forgejo-token) >> $GITHUB_OUTPUT echo runner-logs="$(pwd)/forgejo-runner.log" >> $GITHUB_OUTPUT echo runner-file="$(pwd)/.runner" >> $GITHUB_OUTPUT + echo dir="$(pwd)" >> $GITHUB_OUTPUT + + echo "$(pwd)" >> $GITHUB_PATH + echo "${{ github.action_path }}" >> $GITHUB_PATH shell: bash