dotfiles/.github/workflows/gitee_sync_dependencies.yml
Dict Xiong 92aa5fa920
[dev] refactor riot; improve tmux and vim; more plugins; more aliases (#43)
* riot: remove unknown domain warn

* install.sh: --no-ssh -> --no-auth-info

* doll: --restart=unless-stopped

* zshrc: alias cps and mvs

* riot: proxy -> ssh

* zshrc: not alias rm to trash

* (trial) riot devel: separate preset to config dir riot.d

* riot: support extra options and extra -o options

* (experimental) riot config in a single file

* riot config: add nasp remote and null domain

* gitconf: pull.ff = only

* fix ci

* riot: dynamic port forwarding

* riot: only one domain func will be exec

* to-install: update lemonbench

* to-install: alist

* [exp] riot inferred ssh: ping ping6

* sagt: fix nixos

* riot config: domain 42

* ubuntu.sh: DEBIAN_FRONTEND=noninteractive

* zshrc: ping -n

* zshrc: alias ping -n

* riot-config: jumpserver from sir0 to ssh.beardic.cn

* zshrc: alias ping before checking os type

* frigg: support api4.beardic.cn

* fix(install.sh): crontab fails on a new server

* fix(riot-conf): nasp.ob.ac.cn -> nasp.fit

* fix(install.sh): install crontab (exp)

* feat(test.zsh): test crontab

* fix(riot): secure control master

* fix(ci): riot control master

* fix(riot): not mkdir if dry-run

* feat(vimrc): set shiftwidth=4

* feat(ci): sync tmux-yank

* feat(tmux): set-clipboard on and mouse on (experimental)

* feat(zshrc): alias ping6

* build(ci): hub mirror 1.3->1.4

* fix(zshrc): tmux on msys; feat(common): better perf getting os type and linux dist

* fix(common.sh): get_os_type and get_linux_dist

* feat(zshrc): add plugin {magic-enter,per-directory-history,pip,podman,python,rsync,systemd,timer}

* feat(zshrc): journalctl alias

* feat(vimrc): tab=2 for c,cpp,nix,yaml

* build(ci): checkout v3 -> v4

---------

Co-authored-by: xiongdian.me <xiongdian.me@bytedance.com>
2024-05-05 12:02:55 +08:00

143 lines
4.0 KiB
YAML

name: sync dependencies to gitee
on:
schedule:
- cron: 0 4 * * *
workflow_dispatch: ~
jobs:
ohmyzsh:
runs-on: ubuntu-20.04
steps:
- name: ohmyzsh repo
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/ohmyzsh
dst: gitee/dictxiong
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: org
dst_account_type: user
clone_style: "https" # https/ssh
debug: true # print all commands
force_update: true
static_list: "ohmyzsh"
timeout: '600s'
zsh-users:
runs-on: ubuntu-20.04
steps:
- name: zsh-users repos
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/zsh-users
dst: gitee/dictxiong
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: org
dst_account_type: user
clone_style: "https"
debug: true
force_update: true
static_list: "antigen,zsh-syntax-highlighting,zsh-autosuggestions,zsh-completions"
timeout: '600s'
zdharma-continuum:
runs-on: ubuntu-20.04
steps:
- name: zdharma-continuum repos
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/zdharma-continuum
dst: gitee/dictxiong
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: org
dst_account_type: user
clone_style: "https"
debug: true
force_update: true
static_list: "fast-syntax-highlighting"
timeout: '600s'
tmux-mem-cpu-load:
runs-on: ubuntu-20.04
steps:
- name: thewtex/tmux-mem-cpu-load
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/thewtex
dst: gitee/dictxiong
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: user
dst_account_type: user
clone_style: "https"
debug: true
force_update: true
static_list: "tmux-mem-cpu-load"
timeout: '600s'
tmux-plugins:
runs-on: ubuntu-20.04
steps:
- name: tmux-plugins
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/tmux-plugins
dst: gitee/dictxiong
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: org
dst_account_type: user
clone_style: "https"
debug: true
force_update: true
static_list: "tpm,tmux-resurrect,tmux-yank"
timeout: '600s'
vundle-vim:
runs-on: ubuntu-20.04
steps:
- name: VundleVim/Vundle-vim
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/VundleVim
dst: gitee/dictxiong
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: org
dst_account_type: user
clone_style: "https"
debug: true
force_update: true
static_list: "Vundle.vim"
timeout: '600s'
onedark-vim:
runs-on: ubuntu-20.04
steps:
- name: joshdick/onedark-vim
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/joshdick
dst: gitee/dictxiong
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: user
dst_account_type: user
clone_style: "https"
debug: true
force_update: true
static_list: "onedark.vim"
timeout: '600s'
fzf:
runs-on: ubuntu-20.04
steps:
- name: junegunn/fzf
uses: Yikun/hub-mirror-action@v1.4
with:
src: github/junegunn
dst: gitee/dictxiong
dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
dst_token: ${{ secrets.GITEE_TOKEN }}
src_account_type: user
dst_account_type: user
clone_style: "https"
debug: true
force_update: true
static_list: "fzf"
timeout: '600s'