2023-04-01 09:08:06 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
2023-03-25 15:57:11 +00: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 22:25:52 +00:00
|
|
|
- run: |
|
|
|
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
echo about to actions/checkout@v3 for SELF@vTest
|
2023-03-25 15:57:11 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-25 21:53:12 +00:00
|
|
|
- id: forgejo
|
2023-03-29 13:23:09 +00:00
|
|
|
uses: SELF@vTest
|
2023-03-25 22:07:01 +00:00
|
|
|
with:
|
|
|
|
image-version: 1.19
|
|
|
|
- run: |
|
2023-04-30 22:25:52 +00:00
|
|
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
echo sanity checking the reset of setup-forgejo
|
2023-03-25 21:53:12 +00:00
|
|
|
set -ex
|
2023-03-29 16:46:49 +00:00
|
|
|
test "${{ steps.forgejo.outputs.token }}"
|
2023-03-30 14:11:04 +00:00
|
|
|
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
2023-07-01 21:39:03 +00:00
|
|
|
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
|
|
|
|
if ! grep --quiet 1.19 version.out ; then
|
|
|
|
cat version.out
|
|
|
|
exit 1
|
|
|
|
fi
|
2023-05-22 23:29:17 +00:00
|
|
|
test -f ${{ steps.forgejo.outputs.runner-file }}
|