Skip to content

Commit 03efc4d

Browse files
committed
Add workflow using secret token
1 parent 422fd76 commit 03efc4d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/hello.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Hello
2+
3+
on: [push]
4+
5+
jobs:
6+
say-hello:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Say hello
10+
run: echo "hello"

.github/workflows/secret.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Use Secret Token
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout code
8+
uses: actions/checkout@v4
9+
10+
- name: Use secret in env
11+
run: echo "The secret is $MY_SECRET_TOKEN"
12+
env:
13+
MY_SECRET_TOKEN: ${{ secrets.MY_SECRET_TOKEN }}

0 commit comments

Comments
 (0)