2023-04-01 05:08:06 -04:00
|
|
|
# SPDX-License-Identifier: MIT
|
2023-03-25 11:57:11 -04:00
|
|
|
name: Setup Forgejo
|
|
|
|
run-name: ${{ github.actor }} is setting up Forgejo
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
setup-forgejo:
|
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
2023-04-30 18:25:52 -04:00
|
|
|
- run: |
|
|
|
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
echo about to actions/checkout@v3 for SELF@vTest
|
2024-12-07 09:01:14 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-25 17:53:12 -04:00
|
|
|
- id: forgejo
|
2023-03-29 09:23:09 -04:00
|
|
|
uses: SELF@vTest
|
2023-03-25 18:07:01 -04:00
|
|
|
with:
|
2023-07-27 14:45:06 -04:00
|
|
|
image-version: 1.20
|
2023-03-25 18:07:01 -04:00
|
|
|
- run: |
|
2023-04-30 18:25:52 -04:00
|
|
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
echo sanity checking the reset of setup-forgejo
|
2023-03-25 17:53:12 -04:00
|
|
|
set -ex
|
2023-03-29 12:46:49 -04:00
|
|
|
test "${{ steps.forgejo.outputs.token }}"
|
2023-03-30 10:11:04 -04:00
|
|
|
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
2023-07-01 17:39:03 -04:00
|
|
|
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
|
2023-07-27 14:45:06 -04:00
|
|
|
if ! grep --quiet 1.20 version.out ; then
|
2023-07-01 17:39:03 -04:00
|
|
|
cat version.out
|
|
|
|
exit 1
|
|
|
|
fi
|
2023-05-22 19:29:17 -04:00
|
|
|
test -f ${{ steps.forgejo.outputs.runner-file }}
|