 Github Actions插件
Github Actions插件
 提示
以下为一封传话聚合推送API Github Actions 插件源码, 使用TypeScript编写, 已上架Marketplace, 欢迎您在自己的Github项目中使用消息模块。
https://github.com/teakong/github-action-yifengchuanhua (opens new window)
https://gitee.com/teakong/github-action-yifengchuanhua (opens new window)
# 1. 引入依赖
name: 'build-test'
on: # rebuild any PRs and main branch changes
  push:
    branches:
      - main
      - 'releases/*'
jobs:
  test: # make sure the action works on a clean machine without building
    runs-on: ubuntu-latest
    steps:
      - uses: josStorer/get-current-time@v2.0.2
        id: current-time
        with:
          format: YYYYMMDD-HH
          utcOffset: "+08:00"
      - uses: teakong/github-action-yifengchuanhua@v1.0.0
        with:
          channelCode: ${{secrets.channelCode}}
          head: "您有一条新的消息请注意查收 ${{ steps.current-time.outputs.formattedTime }}"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 2. 注意事项
使用Github Actions时,请确保您配置好了Settings——Secrets and variables里面的CHNANELCODE密钥。
Last Updated: 2024/12/12, 21:28:26
