Skip to content

Commit

Permalink
更新禁用github的actions的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
Maojuan-lang authored Nov 21, 2023
1 parent 0e5f8ec commit e38a06b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
run-python-job:
runs-on: ubuntu-latest
if: github.repository_owner != 'Maojuan-lang'

env:
UID: ${{ secrets.UID }}
Expand Down

2 comments on commit e38a06b

@nishuiq
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好,如果要彻底关闭这个 Actions 定时任务,找到对应的 workflow,需要点击 Disable workflow。你的方式 if ... 只是不执行后面的内容,这个 Actions 还是会被定时运行。

示例——关掉 Github Actions 森空岛定时签到workflow:
image
关闭后,将不再定时执行该workflow:
image

禁用和启用工作流程文档:
https://docs.github.com/zh/actions/using-workflows/disabling-and-enabling-a-workflow#disabling-a-workflow

@Maojuan-lang
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,我在设置中将他关闭了,感谢你的评论

Please sign in to comment.