mirror of
https://codeberg.org/JasterV/forgejo-mirror-sync.git
synced 2026-04-26 21:53:46 +00:00
update CI
This commit is contained in:
parent
ac32cbeb82
commit
afe3a6f686
1 changed files with 10 additions and 10 deletions
|
|
@ -1,11 +1,13 @@
|
|||
when:
|
||||
- event: [cron, workflow_dispatch]
|
||||
event:
|
||||
- cron
|
||||
- manual
|
||||
|
||||
steps:
|
||||
sync:
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add --no-cache curl jq bash git
|
||||
- apk add --no-cache curl jq bash
|
||||
- chmod +x sync.sh
|
||||
- ./sync.sh
|
||||
environment:
|
||||
|
|
@ -13,7 +15,7 @@ steps:
|
|||
from_secret: CODEBERG_TOKEN
|
||||
FORGEJO_TOKEN:
|
||||
from_secret: FORGEJO_TOKEN
|
||||
CODEBERG_USER: jasterv
|
||||
CODEBERG_USER: JasterV
|
||||
FORGEJO_URL: https://git.jaster.xyz
|
||||
STATE_FILE: mirrored.txt
|
||||
|
||||
|
|
@ -21,13 +23,11 @@ steps:
|
|||
image: appleboy/drone-git-push
|
||||
settings:
|
||||
remote: ${CI_REPO_CLONE_URL}
|
||||
branch: main
|
||||
# Moving the secret inside settings to satisfy the linter
|
||||
password:
|
||||
from_secret: CODEBERG_TOKEN
|
||||
branch: ${CI_COMMIT_BRANCH}
|
||||
commit: true
|
||||
commit_message: "chore: update mirrored.txt"
|
||||
commit_message: "chore: update mirrored.txt [skip ci]"
|
||||
author_name: "Sync Bot"
|
||||
author_email: "bot@jaster.xyz"
|
||||
environment:
|
||||
GIT_PUSH_TOKEN:
|
||||
from_secret: CODEBERG_TOKEN
|
||||
when:
|
||||
status: [success]
|
||||
|
|
|
|||
Loading…
Reference in a new issue