Update github-codeberg.yml

This commit is contained in:
drifty
2025-02-22 10:44:24 +05:30
committed by GitHub
parent 1af5ec71c6
commit ce7b7ef2db

View File

@@ -1,11 +1,29 @@
on: [push] # Sync repo to the Forgejo mirror
... name: Repo sync (GitHub -> Forgejo)
steps: on:
- uses: actions/checkout@v3 push:
with: branches:
fetch-depth: 0 - '**'
- uses: yesolutions/mirror-action@master workflow_dispatch: # Manual dispatch
with: schedule:
REMOTE: 'https://codeberg.org/driftywinds/yt-builds.git' - cron: "0 */6 * * *"
GIT_USERNAME: driftywinds
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} jobs:
sync-repo-to-forgejo:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Gather facts"
run: |
echo "Repo variables:"
echo " FORGEJO_PUSH_URL: ${{ vars.FORGEJO_BASE_URL }}${{ vars.FORGEJO_REPO }}.git"
echo " FORGEJO_USERNAME: ${{ vars.FORGEJO_USERNAME }}"
- name: "Sync repo"
uses: spyoungtech/mirror-action@master
with:
REMOTE: "${{ vars.FORGEJO_BASE_URL }}${{ vars.FORGEJO_REPO }}.git"
GIT_USERNAME: ${{ vars.FORGEJO_USERNAME }}
GIT_PASSWORD: ${{ secrets._FORGEJO_TOKEN }}