Changes to gitea workflow

This commit is contained in:
Michel Roegl-Brunner 2025-05-13 13:27:45 +02:00
parent 72be5e98e8
commit b0bcfbb0dd

View File

@ -1,24 +1,31 @@
name: Sync to Gitea
name: " ⏳ Gitea Mirror Setup"
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
push:
branches:
- main # or whatever branch you want to sync
- main
jobs:
sync:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source repo
uses: actions/checkout@v4
- name: Push to Gitea
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git remote add gitea https://$GITEA_USER:$GITEA_TOKEN@git.community-scripts.org/community-scripts/ProxmoxVED.git
git push gitea HEAD:main --force
env:
GITEA_USER: ${{ secrets.GITEA_USER }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
- uses: varunsridharan/action-gitea-mirror@main
name: " ⏳ Setting Up Mirror"
with:
gh_username: ${{ secrets.GH_USERNAME }}
gh_accesstoken: ${{ secrets.GH_TOKEN }}
gitea_host: ${{ secrets.GITEA_HOST }}
gitea_username: ${{ secrets.GITEA_USERNAME }}
gitea_accesstoken: ${{ secrets.GITEA_TOKEN }}
gitea_gist_prefix: "gist"
gitea_gist_surfix: ""
gistsSource: true
gistsStared: true
repositoryStared: true
repositorySource: true
repositoryForked: true