Skip to content

Commit 00f6069

Browse files
authored
Create blank.yml
1 parent 9f20511 commit 00f6069

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/blank.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Example Workflow with Secret
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
example-job:
10+
runs-on: ubuntu-latest
11+
env:
12+
MY_SECRET: ${{ secrets.MY_SECRET }} # 使用 GitHub Secret
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Print secret (caution: avoid printing secrets in real-world use)
19+
run: echo "My secret is $MY_SECRET" # 在脚本中使用 GitHub Secret

0 commit comments

Comments
 (0)