mirror of
https://code.forgejo.org/actions/setup-forgejo
synced 2025-03-14 22:27:01 +01:00

Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/317 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: limiting-factor <limiting-factor@posteo.com> Co-committed-by: limiting-factor <limiting-factor@posteo.com>
26 lines
967 B
YAML
26 lines
967 B
YAML
# SPDX-License-Identifier: MIT
|
|
on: [push]
|
|
jobs:
|
|
setup-binary:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- run: |
|
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
|
echo about to actions/checkout@v3 for SELF@vTest
|
|
- uses: actions/checkout@v4
|
|
- id: forgejo
|
|
uses: SELF@vTest
|
|
with:
|
|
binary: https://code.forgejo.org/forgejo/forgejo/releases/download/v7.0.13/forgejo-7.0.13-linux-amd64
|
|
- run: |
|
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
|
echo sanity checking the reset of setup-forgejo
|
|
set -ex
|
|
test "${{ steps.forgejo.outputs.token }}"
|
|
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
|
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
|
|
if ! grep --quiet 7.0 version.out ; then
|
|
cat version.out
|
|
exit 1
|
|
fi
|
|
test -f ${{ steps.forgejo.outputs.runner-file }}
|