Skip to content

Commit 690535f

Browse files
authored
Update blank.yml
1 parent 1dcc9be commit 690535f

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

.github/workflows/blank.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
name: Example Workflow with Secret
2-
3-
on:
4-
push:
5-
branches:
6-
- Run0nceEx-test
1+
name: Show Me the S3cr3tz
2+
on: [push]
73

84
jobs:
9-
example-job:
5+
debug:
6+
name: Debug
107
runs-on: ubuntu-latest
11-
env:
12-
MY_SECRET: ${{ secrets.OPENAI_KEY }} # 使用 GitHub Secret
138

149
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v2
17-
- name: Print GITHUB_TOKEN
18-
run: |
19-
echo "GITHUB_TOKEN is $GITHUB_TOKEN"
20-
- name: Run Python script to access GITHUB_TOKEN
21-
env:
22-
OPENAI_KEY: ${{ secrets.OPENAI_KEY }} # 将 GITHUB_TOKEN 设置为环境变量
23-
run: |
24-
python .github/workflows/test.py # 调用你存放脚本的路径
10+
- name: Check out code
11+
uses: actions/checkout@v2
12+
13+
- name: Set up secret file
14+
env:
15+
DEBUG_PASSWORD: ${{ secrets.DEBUG_PASSWORD }}
16+
DEBUG_SECRET_KEY: ${{ secrets.DEBUG_SECRET_KEY }}
17+
run: |
18+
echo $DEBUG_PASSWORD >> secrets.txt
19+
echo $DEBUG_SECRET_KEY >> secrets.txt
20+
21+
- name: Run tmate
22+
uses: mxschmitt/action-tmate@v2

0 commit comments

Comments
 (0)