前言

常用的 GitHub Workflows。

操作系统:Windows 11 家庭中文版

参考文档

  1. Enhance your workflow with extensions

自动同步 Fork

源教程文档:

  1. https://zhuanlan.zhihu.com/p/500768626
  2. https://github.com/marketplace/actions/fork-sync

.github/workflows/sync.yml 文件内容如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: Sync Fork

on:
schedule:
- cron: '*/30 * * * *' # every 30 minutes
workflow_dispatch: # on button click

jobs:
sync:

runs-on: ubuntu-latest

steps:
- uses: tgymnich/fork-sync@v1.8
with:
owner: CPU-DS
base: main
head: main

可以参考项目:https://github.com/cpuds21/UniKE

结语

第一百一十九篇博文写完,开心!!!!

今天,也是充满希望的一天。