From 20a9884efe4a8bacbff36ccfb22663697b541da2 Mon Sep 17 00:00:00 2001 From: aryak Date: Thu, 22 Aug 2024 14:09:42 +0000 Subject: [PATCH] Update .woodpecker/instancejson.yml --- .woodpecker/instancejson.yml | 52 ++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.woodpecker/instancejson.yml b/.woodpecker/instancejson.yml index b50a332..f18b9a5 100644 --- a/.woodpecker/instancejson.yml +++ b/.woodpecker/instancejson.yml @@ -1,28 +1,28 @@ # Credit to Hygna (https://codeberg.org/Hygna) steps: - - name: instancejson - image: python:3-bullseye - secrets: [ssh_key, mail] - when: - - event: cron - cron: instancejson - - path: - include: ["README.md", ".woodpecker/instancejson.yml"] - branch: dev - commands: - # SSH configuration - - mkdir ~/.ssh - - ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts - - eval `ssh-agent` - - echo "$SSH_KEY" | tr -d '\r' | ssh-add - - # Running script - - git clone git@codeberg.org:gothub/gothub-instances.git instances - - cd instances - - pip install -r requirements.txt - - python3 main.py - # Git configuration - - git config --global user.email $MAIL - - git config --global user.name "Woodpecker CI" - - git add instances.json - - git commit -m "Updated instances" - - git push -u origin master + - name: instancejson + image: python:3-bullseye + secrets: [ssh_key, mail] + when: + - event: cron + cron: instancejson + - path: + include: ["README.md", ".woodpecker/instancejson.yml"] + branch: dev + commands: + # SSH configuration + - mkdir ~/.ssh + - ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts + - eval `ssh-agent` + - echo "$SSH_KEY" | tr -d '\r' | ssh-add - + # Running script + - git clone git@codeberg.org:gothub/gothub-instances.git instances + - cd instances + - pip install -r requirements.txt + - python3 main.py + # Git configuration + - git config --global user.email $MAIL + - git config --global user.name "Woodpecker CI" + - git add instances.json + - git commit -m "Updated instances" + - git push -u origin master