Files
gotify/.github/workflows/update.yml
fghwett 78da95269c
All checks were successful
代码更新通知 / update-server (push) Successful in 5s
输出目录
2024-12-18 15:18:11 +08:00

25 lines
667 B
YAML

name: '代码更新通知'
on:
push:
jobs:
update-server:
runs-on: home-lab
steps:
- name: 输出当前目录环境
run: pwd && ls -ahl
- name: 输出github环境变量
run: echo 'github相关 ${{ toJSON(github) }}'
# - name: 拷贝文件
# run: task cp
- name: 发送通知
id: use-go-action
uses: https://git.aweoo.com/action/gotify@latest
with:
username: foo
- name: Print Output
run: echo 'output time is ${{ steps.use-go-action.outputs.time }}'
- name: 错误处理
if: ${{ failure() }}
run: |
echo '出错了 你个笨蛋'