Changes to gitea workflow

This commit is contained in:
Michel Roegl-Brunner 2025-05-13 13:54:26 +02:00
parent ed8ba99a71
commit 9894f888d5

View File

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