mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-27 08:40:57 -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@v3
|
|
- 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 }}
|