Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Action触发一次推送 #2

Open
wants to merge 38 commits into
base: master
Choose a base branch
from

Conversation

hsyhhssyy
Copy link
Member

@hsyhhssyy hsyhhssyy commented Dec 6, 2024

这里面提供了两个flow
第一个flow是,任何时候向master推送,就触发一次。
第二个flow是,每天下午16:00检测k佬的仓库是否有新的commit,如果有触发上一个workflow。

要使用这个workflow,兔妈你需要在merge之前,在这个Repo的Settings->Secrets and Variables->Actions 里创建一个Repository secrets 叫 BAIDU_TOKEN,内容就是百度的token。

image

就像这样。

@hsyhhssyy
Copy link
Member Author

根目录新增了一个文件 kengxxiao_last_commit.txt 记录了上一个 commit 的 sha,这个文件会是由Action自动维护的,不需要手动填内容。

@hsyhhssyy hsyhhssyy marked this pull request as ready for review December 6, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant