diff --git a/action.yml b/action.yml index 46b9c72..84ab529 100644 --- a/action.yml +++ b/action.yml @@ -81,6 +81,7 @@ runs: - id: forgejo run: | cd $(mktemp -d) + cp ${{ github.action_path }}/runner-config.yaml . LXC_IP_PREFIX=${{ inputs.lxc-ip-prefix }} forgejo-dependencies.sh export CONTAINER=${{ inputs.container }} forgejo.sh setup ${{ inputs.user }} "${{ inputs.password }}" ${{ inputs.image }} ${{ inputs.image-version }} @@ -89,4 +90,5 @@ runs: 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 + echo runner-file="$(pwd)/.runner" >> $GITHUB_OUTPUT shell: bash diff --git a/testdata/sanity-checks/.forgejo/workflows/test.yml b/testdata/sanity-checks/.forgejo/workflows/test.yml index f09e670..58a1608 100644 --- a/testdata/sanity-checks/.forgejo/workflows/test.yml +++ b/testdata/sanity-checks/.forgejo/workflows/test.yml @@ -21,4 +21,4 @@ jobs: test "${{ steps.forgejo.outputs.token }}" test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19 - + test -f ${{ steps.forgejo.outputs.runner-file }}