Repo Sync #573
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Repo Sync | |
on: | |
workflow_dispatch: | |
jobs: | |
sync_latest_from_upstream: | |
runs-on: ubuntu-latest | |
name: Sync latest commits from upstream repo | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Sync files | |
run: | | |
mkdir -p ../tmp | |
cd ../tmp | |
git clone https://github.com/nextcloud/all-in-one.git --depth 1 . | |
cd ../all-in-one | |
rm -rf ./* | |
mv ../tmp/* ./ | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Workflow" | |
git add -A | |
git commit -m "Repo-sync" || echo "Nothing to update" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |