Skip to content

Update latest

Update latest #43

name: Update latest
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"
jobs:
obs_latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
git remote add openatom https://github.com/OpenAtom-Linyaps/linyaps
git fetch openatom --no-tags
git remote add deepin https://github.com/deepin-community/linyaps
git fetch deepin --no-tags
git reset --hard openatom/master
git checkout deepin/master debian
rm -rf .github
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: obs_latest
create_branch: true
push_options: --force
commit_message: Automated Change
obs_latest_uos20:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
git remote add openatom https://github.com/OpenAtom-Linyaps/linyaps
git fetch openatom --no-tags
git remote add deepin https://github.com/deepin-community/linyaps
git fetch deepin --no-tags
git reset --hard openatom/master
git checkout deepin/develop/20 debian
rm -rf .github
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: obs_latest_uos20
create_branch: true
push_options: --force
commit_message: Automated Change
obs_latest_nopatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
git remote add openatom https://github.com/OpenAtom-Linyaps/linyaps
git fetch openatom --no-tags
git remote add deepin https://github.com/deepin-community/linyaps
git fetch deepin --no-tags
git reset --hard openatom/master
git checkout deepin/master debian
git checkout deepin/master rpm
rm -rf .github
- run: |
# 删除patch
rm -r debian/patches
# 删除preloader相关的代码
sed -i '/preloader/d' debian/linglong-bin.postinst debian/linglong-bin.install debian/linglong-bin.postinst
# 禁止单元测试
sed -i '/set(ENABLE_TESTING/{n; s/ON/OFF/}' CMakeLists.txt
- uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: obs_latest_nopatch
create_branch: true
push_options: --force
commit_message: Automated Change