Skip to content

Commit cb31e6f

Browse files
committed
add practice2
1 parent 4814f3b commit cb31e6f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/practice2.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: commit_checkout
2+
on: [push]
3+
jobs:
4+
external-workflow:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
with:
9+
repository: abystoma/external-workflow
10+
ref: 3eb718710f20d7df6874acdc41e189a2ae4182f5
11+
- name: Greetings
12+
run: echo "$(<greeting.txt)"

.github/workflows/upload_file.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
- name: Download File
99
run: wget https://github.com/pitycycy/example-github-actions-helloworld/raw/refs/heads/main/hello.txt
1010
# 这将从您的工作流中上传工件,且允许您在工作流完成后在作业之间共享数据并存储数据
11+
# 你可以在 https://github.com/pitycycy/example-github-actions-helloworld 中的 Actions 选项卡中查看文件
1112
- uses: actions/upload-artifact@v4
1213
with:
1314
name: my-artifact # 文件名称

0 commit comments

Comments
 (0)