Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1cac76c

Browse files
authored
Create demo-github-action.yml
1 parent 5fc3c20 commit 1cac76c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: GitHub Actions Demo
2+
run-name: GitHub Actions Demo
3+
4+
# 觸發此 action 的時機
5+
on:
6+
push:
7+
branchs: # 只要有任何一個 commit 被 push,就會觸發此 action
8+
'*'
9+
workflow_dispatch: # 可以手動執行此 action
10+
11+
# 預先定義此 action 要幹嘛
12+
jobs:
13+
demo:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- run: echo '執行成功'

0 commit comments

Comments
 (0)