Create mirror_to_codeberg.yml
This commit is contained in:
parent
8fb61c91d7
commit
b397590b28
19
.github/workflows/mirror_to_codeberg.yml
vendored
Normal file
19
.github/workflows/mirror_to_codeberg.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# Pushes the contents of the repo to the Codeberg mirror
|
||||
name: Mirror to Codeberg
|
||||
permissions:
|
||||
contents: read
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '30 4 * * *' # Daily at 4:30
|
||||
jobs:
|
||||
codeberg:
|
||||
if: ${{ github.repository == 'armbian/build' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with: { fetch-depth: 0 }
|
||||
- uses: pixta-dev/repository-mirroring-action@v1
|
||||
with:
|
||||
target_repo_url: git@codeberg.org:armbian/build.git
|
||||
ssh_private_key: ${{ secrets.GHA_SSH_KEY }}
|
||||
Loading…
Reference in New Issue
Block a user