[squash] mirror to code.forgejo.org
Some checks failed
/ mirror (push) Has started running
/ build-forgejo-deb (push) Has been cancelled
/ installtest-bookworm-sqlite (push) Has been cancelled
/ installtest-bullseye-sqlite (push) Has been cancelled
/ installtest-buster-sqlite (push) Has been cancelled
/ installtest-bookworm-user (push) Has been cancelled
/ testsuite-repo-upgrade-sqlite (push) Has been cancelled
/ installtest-buster-bin (push) Has been cancelled
/ publish-release-repo (push) Has been cancelled
Some checks failed
/ mirror (push) Has started running
/ build-forgejo-deb (push) Has been cancelled
/ installtest-bookworm-sqlite (push) Has been cancelled
/ installtest-bullseye-sqlite (push) Has been cancelled
/ installtest-buster-sqlite (push) Has been cancelled
/ installtest-bookworm-user (push) Has been cancelled
/ testsuite-repo-upgrade-sqlite (push) Has been cancelled
/ installtest-buster-bin (push) Has been cancelled
/ publish-release-repo (push) Has been cancelled
This commit is contained in:
parent
1a8f2ec431
commit
6adb447669
11
.action-forgejo-mirror.sh
Executable file
11
.action-forgejo-mirror.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$GITHUB_REPOSITORY_OWNER" = "crystal" ] ; then
|
||||
echo "crystal_pr: skipping mirror!"
|
||||
exit 0
|
||||
fi
|
||||
git fetch --tags
|
||||
git remote add action-forgejo-mirror https://forgejo-deb:$FORGEJO_KEY@$FORGEJO_DEST/$GITHUB_REPOSITORY
|
||||
git push action-forgejo-mirror --all
|
||||
git push action-forgejo-mirror --tags "refs/remotes/origin/*:refs/heads/*"
|
||||
git remote remove action-forgejo-mirror
|
|
@ -1,5 +1,19 @@
|
|||
on: [push, pull_request]
|
||||
jobs:
|
||||
mirror:
|
||||
runs-on: bookworm
|
||||
if: github.event_name == 'push'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: "mirror repo: code.forgejo.org"
|
||||
env:
|
||||
FORGEJO_DEST: code.forgejo.org
|
||||
FORGEJO_KEY: ${{ secrets.cfo_api_key }}
|
||||
run: ./.action-forgejo-mirror.sh
|
||||
|
||||
build-forgejo-deb:
|
||||
runs-on: bullseye
|
||||
steps:
|
||||
|
@ -202,6 +216,13 @@ jobs:
|
|||
token: ${{ secrets.codeberg_api_key }}
|
||||
release-dir: forgejo-release
|
||||
|
||||
- uses: actions/forgejo-release@v1
|
||||
with:
|
||||
direction: upload
|
||||
url: https://code.forgejo.org
|
||||
token: ${{ secrets.cfo_api_key }}
|
||||
release-dir: forgejo-release
|
||||
|
||||
- name: Debian package registry publish
|
||||
env:
|
||||
FORGEJO_SITE: https://code.forgejo.org
|
||||
|
|
Loading…
Reference in a new issue