Changes to gitea workflow
This commit is contained in:
parent
ed8ba99a71
commit
9894f888d5
35
.github/workflows/push-to-gitea.yml
vendored
35
.github/workflows/push-to-gitea.yml
vendored
@ -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 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user