2023-04-01 11:08:06 +02:00
|
|
|
# SPDX-License-Identifier: MIT
|
2023-03-25 16:57:11 +01:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2023-12-17 23:32:55 +01:00
|
|
|
setup-binary:
|
2023-03-25 16:57:11 +01:00
|
|
|
runs-on: self-hosted
|
|
|
|
steps:
|
2023-05-01 00:25:52 +02:00
|
|
|
- run: |
|
|
|
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
echo about to actions/checkout@v3 for SELF@vTest
|
2023-03-25 16:57:11 +01:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-25 22:53:12 +01:00
|
|
|
- id: forgejo
|
2023-03-29 15:23:09 +02:00
|
|
|
uses: SELF@vTest
|
2023-03-25 23:07:01 +01:00
|
|
|
with:
|
2023-12-17 23:32:55 +01:00
|
|
|
binary: https://codeberg.org/forgejo/forgejo/releases/download/v1.20.6-1/forgejo-1.20.6-1-linux-amd64
|
2023-03-25 23:07:01 +01:00
|
|
|
- run: |
|
2023-05-01 00:25:52 +02:00
|
|
|
echo +++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
echo sanity checking the reset of setup-forgejo
|
2023-03-25 22:53:12 +01:00
|
|
|
set -ex
|
2023-03-29 18:46:49 +02:00
|
|
|
test "${{ steps.forgejo.outputs.token }}"
|
2023-03-30 16:11:04 +02:00
|
|
|
test "FORGEJO_TOKEN" -a "FORGEJO_TOKEN" != F'O'RGEJO_TOKEN
|
2023-07-01 23:39:03 +02:00
|
|
|
curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version >& version.out
|
2023-07-27 20:45:06 +02:00
|
|
|
if ! grep --quiet 1.20 version.out ; then
|
2023-07-01 23:39:03 +02:00
|
|
|
cat version.out
|
|
|
|
exit 1
|
|
|
|
fi
|
2023-05-23 01:29:17 +02:00
|
|
|
test -f ${{ steps.forgejo.outputs.runner-file }}
|