Skip to content

Commit

Permalink
Update sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
YaKun9 authored Jun 12, 2024
1 parent 3d063ce commit ed00fd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ jobs:
- name: Copy Gitea repository content excluding workflows
run: |
rsync -av --exclude='.github/workflows' gitea_repo/ .
- name: Commit and push changes to GitHub
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git rm -r --cached gitea_repo
git pull --rebase
git add -A
git commit -m "Sync from Gitea repository" || echo "No changes to commit"
git push https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }}

0 comments on commit ed00fd5

Please sign in to comment.