Jacky's blog
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)

Jack Yang

编程; 随笔
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)
  • shell

  • tool

    • mac
    • mac tool
    • c tool
    • platform
    • dev tool
    • java tool
    • IDEA
    • vscode
    • Docker 使用指南
    • unbuntuOnWindows
    • oh-my-zsh
    • github
      • workflows
        • trigger workflow
        • schedule
        • Reuse workflows
        • workflow commands
        • multiline strings
      • other
        • IDEA online
        • QQ 邮箱授权
      • link
    • lldb
    • ripgrep 高性能文本搜索工具使用指南
    • appium
    • mvn
    • ffmpeg
    • gradle
    • git 使用指南
    • jenv
    • php-fpm
    • raycast
    • Vim 编辑器入门指南
    • jadx
    • excalidraw
  • 网络

  • algo

  • compute_base

  • blog

  • growth

  • java

  • C&C++

  • ai

  • secure

  • cms

  • english

  • 生活

  • 金融学

  • more

  • other
  • tool
Jacky
2023-06-14
目录

github

# workflows

# trigger workflow

官网是最全面的, 建议直接查看 https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows

# schedule

通过 schedule 出发 workflow, 更多内容可见trigger a workflow by schedule (opens new window)

POSIX cron 语法

POSIX cron 是一种用于调度任务的时间表达式语法, 它由五个字段组成, 分别表示分钟、小时、日期、月份和星期几

下面是每个字段的取值范围及其对应的含义:

  1. 分钟(0-59): 表示一小时中的哪一分钟触发任务
  2. 小时(0-23): 表示一天中的哪个小时触发任务
  3. 日期(1-31): 表示一个月中的哪一天触发任务
  4. 月份(1-12): 表示一年中的哪个月触发任务
  5. 星期几(0-7, 其中 0 和 7 都表示周日): 表示一周中的哪一天触发任务

使用这五个字段的组合, 我们可以创建出各种不同的时间表达式来调度任务。下面是一些示例:

  • * * * * *: 每分钟触发一次任务
  • 0 * * * *: 每小时的 0 分钟触发一次任务
  • 0 0 * * *: 每天的 0 点整触发一次任务
  • 0 0 * * 1: 每周一的 0 点整触发一次任务
  • 0 0 1 1 *: 每年的 1 月 1 日的 0 点整触发一次任务

通过指定这些时间表达式, 你可以在 GitHub Actions 中使用 POSIX cron 来定时执行你的工作流程

# Reuse workflows

coming soon

# workflow commands

# multiline strings

multiline strings (opens new window)

使用方式:

{name}<<{delimiter}
{value}
{delimiter}
1
2
3

示例:

steps:
  - name: Set the value in bash
    id: step_one
    run: |
      EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
      echo "JSON_RESPONSE<<$EOF" >> "$GITHUB_ENV"
      curl https://example.com >> "$GITHUB_ENV"
      echo "$EOF" >> "$GITHUB_ENV"
1
2
3
4
5
6
7
8

# other

# IDEA online

项目首页按., 会自动打开: https://github.dev/<username>/<project>/tree/<branch>。 就可以有一个简易的 vscode 打开, 对于简易的修改非常方便

# QQ 邮箱授权

qq 邮箱的授权码更多内容可见链接: SMTP/IMAP 服务 (opens new window)

IMAP/SMTP 设置方法
用户名/帐户:  你的 QQ 邮箱完整的地址

密码:  生成的授权码

电子邮件地址:  你的 QQ 邮箱的完整邮件地址

接收邮件服务器:  imap.qq.com, 使用 SSL, 端口号 993

发送邮件服务器:  smtp.qq.com, 使用 SSL, 端口号 465 或 587
1
2
3
4
5
6
7
8
9
10

# link

  • 《GitHub Actions 定时运行代码: 每天定时百度链接推送》 (opens new window)
  • github-actions-en (opens new window)
  • github-actions-cn (opens new window)
  • security-guides (opens new window)
上次更新: 2025/10/09, 23:53:03
oh-my-zsh
lldb

← oh-my-zsh lldb→

最近更新
01
npx 使用指南
10-12
02
cursor
09-28
03
inspect
07-20
更多文章>
Theme by Vdoing | Copyright © 2019-2025 Jacky | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式