Skip to content

Commit 29ecf6a

Browse files
committed
add github actions
1 parent afcaeb1 commit 29ecf6a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.github/workflows/hello_workflow.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: hello_workflow
2+
on: [push]
3+
jobs:
4+
print-hello:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Hello world using echo
9+
run: echo "$(<hello.txt)"
10+
- name: Hello world using cat
11+
run: cat hello.txt

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# example-github-actions-helloworld
1+
# example-github-actions-helloworld
2+
3+
## 参考资料
4+
5+
![https://hyperskill.org/learn/step/20853](https://hyperskill.org/learn/step/20853)

hello.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello world from github

0 commit comments

Comments
 (0)