1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-forgejo synced 2024-09-18 17:36:16 +00:00

Merge pull request 'add test to verify the runner is registered' (#23) from earl-warren/setup-forgejo:wip-runner into main

Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/23
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2023-05-22 23:44:22 +00:00
commit a6e1d54a97
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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 }}