Server酱新增 GitHub Action,已上架 Marketplace
Photo by Praveen Thirumurugan on Unsplash
之前有同学在意见反馈中留言询问如何在 GitHub Action 中使用 Server酱 ,于是看了下文档写了个 Action。
Action 地址 → github.com/marketplace…
使用方式:
-
将 sendkey 添加到仓库的 Actions secrets 中,命名为 sendkey
- 在
.github/workflows/***.yml
中使用,一个完整的例子如下:
name: 'build-test'
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: ServerChan · Server酱通知
uses: easychen/github-action-server-chan@v1.0.0
with:
sendkey: ${{ secrets.sendkey }}
title: "我是一个小测试😝"