Skip to content

Commit

Permalink
ci: add mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikorin authored Jan 8, 2025
1 parent cd9c2ea commit f8ec618
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Sync Mirror

on:
push:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

schedule:
- cron: '0 0 * * *' # at the end of the day


# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these mirror deployments to complete.
concurrency:
group: 'mirror'
cancel-in-progress: false

jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: "git@codeberg.org:Omikorin/usos.git"
ssh_private_key: ${{ secrets.CODEBERG_SSH_KEY }}

0 comments on commit f8ec618

Please sign in to comment.