Update latest #460
This file contains hidden or 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: Update latest | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 2 * * *" | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - run: | | |
| git remote add upstream https://github.com/OpenAtom-Linyaps/linyaps-box | |
| git remote add deepin https://github.com/deepin-community/linyaps-box | |
| git fetch --all --no-tags | |
| git reset --hard upstream/master | |
| git checkout deepin/master debian | |
| git checkout deepin/master rpm | |
| rm -rf .github || true | |
| - uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| branch: obs_latest_deepin | |
| create_branch: true | |
| push_options: --force | |
| commit_message: Automated Change | |
| - run: | | |
| rm -r debian/patches || true | |
| - uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| branch: obs_latest | |
| create_branch: true | |
| push_options: --force | |
| commit_message: Automated Change |