Sync With Codeberg Mirror #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync With Codeberg Mirror | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 */6 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Setup Build Environment | |
- name: 🎉 The job was automatically triggered by a ${{ github.event_name }} event. | |
run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- name: 🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub! | |
run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- name: 🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}. | |
run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 💡 The ${{ github.repository }} repository has been cloned to the runner. | |
run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | |
# Mirror To Codeberg | |
- uses: pixta-dev/repository-mirroring-action@v1 | |
continue-on-error: true | |
with: | |
target_repo_url: "[email protected]:alexis/catgirl-engine.git" | |
ssh_private_key: ${{ secrets.CODEBERG_SSH }} |