mirror of
https://code.forgejo.org/actions/setup-forgejo
synced 2025-03-15 06:36:58 +01:00
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
This commit is contained in:
parent
7052de80f6
commit
e2450fc1f8
1 changed files with 7 additions and 3 deletions
10
action.yml
10
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
|
||||
|
|
Loading…
Add table
Reference in a new issue