Update push-to-gitea.yml
This commit is contained in:
parent
9145099134
commit
0dc063e736
22
.github/workflows/push-to-gitea.yml
vendored
22
.github/workflows/push-to-gitea.yml
vendored
@ -15,13 +15,21 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Add Gitea remote
|
||||||
- name: Push to Gitea
|
run: git remote add gitea https://$GITEA_USER:$GITEA_TOKEN@git.community-scripts.org/community-scripts/ProxmoxVED.git
|
||||||
run: |
|
env:
|
||||||
git config --global user.name "Push From Github"
|
GITEA_USER: ${{ secrets.GITEA_USERNAME }}
|
||||||
git config --global user.email "actions@github.com"
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
git remote add gitea https://$GITEA_USER:$GITEA_TOKEN@git.community-scripts.org/community-scripts/ProxmoxVED.git
|
- name: Pull Gitea changes
|
||||||
git push gitea --force-with-lease gitea --all
|
run: |
|
||||||
|
git fetch gitea
|
||||||
|
git rebase gitea/main
|
||||||
|
env:
|
||||||
|
GITEA_USER: ${{ secrets.GITEA_USERNAME }}
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
|
- name: Push to Gitea
|
||||||
|
run: git push gitea --all
|
||||||
env:
|
env:
|
||||||
GITEA_USER: ${{ secrets.GITEA_USERNAME }}
|
GITEA_USER: ${{ secrets.GITEA_USERNAME }}
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user