push self

This commit is contained in:
Earl Warren 2023-03-25 16:57:11 +01:00
parent 844a9cd4ff
commit f608518e87
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 15 additions and 2 deletions

View file

@ -13,6 +13,9 @@ runs:
steps: steps:
- run: | - run: |
set -x set -x
echo HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
pwd
exit 0
echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get update echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list && apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --quiet -y -t bullseye-backports git docker.io DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --quiet -y -t bullseye-backports git docker.io
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo:1.19 ./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo:1.19

5
testdata/run.sh vendored
View file

@ -41,7 +41,8 @@ function push() {
local dir="$DIR/$workflow" local dir="$DIR/$workflow"
mkdir -p $dir/.forgejo/workflows mkdir -p $dir/.forgejo/workflows
cp $DATA/$workflow.yml $dir/.forgejo/workflows sed -e "s|SELF|$forgejo/$owner|" \
< $DATA/$workflow.yml > $dir/.forgejo/workflows/$workflow.yml
( (
cd $dir cd $dir
git init git init
@ -81,7 +82,7 @@ function push_self() {
git config user.email root@example.com git config user.email root@example.com
git config user.name username git config user.name username
git commit -m 'avoid workflow infinite recursion' git commit -m 'avoid workflow infinite recursion'
git push origin fortesting:main git push --force origin fortesting:main
) )
} }

9
testdata/setup-forgejo.yml vendored Normal file
View file

@ -0,0 +1,9 @@
name: Setup Forgejo
run-name: ${{ github.actor }} is setting up Forgejo
on: [push]
jobs:
setup-forgejo:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: SELF/setup-forgejo@v1