This commit is contained in:
21
.github/workflows/update.yml
vendored
Normal file
21
.github/workflows/update.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: '代码更新通知'
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
update-server:
|
||||
runs-on: home-lab
|
||||
steps:
|
||||
- name: 输出当前目录环境
|
||||
run: pwd && ls -ahl
|
||||
- name: 发送通知
|
||||
id: use-go-action
|
||||
uses: https://git.aweoo.com/learning/simple-go-action@latest
|
||||
with:
|
||||
username: foo
|
||||
- name: Print Output
|
||||
run: echo 'output time is ${{ steps.use-go-action.outputs.time }}'
|
||||
- name: 错误处理
|
||||
if: ${{ failure() }}
|
||||
run: |
|
||||
echo '出错了 你个笨蛋'
|
||||
Reference in New Issue
Block a user