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