Update .woodpecker/instancejson.yml

This commit is contained in:
aryak
2024-08-22 14:09:42 +00:00
parent c5d7aeed6b
commit 20a9884efe
+26 -26
View File
@@ -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