mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 21:00:59 -05:00
push self
This commit is contained in:
parent
844a9cd4ff
commit
f608518e87
3 changed files with 15 additions and 2 deletions
|
@ -13,6 +13,9 @@ runs:
|
|||
steps:
|
||||
- run: |
|
||||
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
|
||||
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
|
||||
|
|
5
testdata/run.sh
vendored
5
testdata/run.sh
vendored
|
@ -41,7 +41,8 @@ function push() {
|
|||
|
||||
local dir="$DIR/$workflow"
|
||||
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
|
||||
git init
|
||||
|
@ -81,7 +82,7 @@ function push_self() {
|
|||
git config user.email root@example.com
|
||||
git config user.name username
|
||||
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
9
testdata/setup-forgejo.yml
vendored
Normal 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
|
Loading…
Reference in a new issue