mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-12-27 15:14:53 -05:00
26 lines
968 B
YAML
26 lines
968 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://codeberg.org/forgejo/forgejo/releases/download/v1.20.6-1/forgejo-1.20.6-1-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 1.20 version.out ; then
|
|
cat version.out
|
|
exit 1
|
|
fi
|
|
test -f ${{ steps.forgejo.outputs.runner-file }}
|