Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c2c97c

Browse files
committed
sample workflow
1 parent c11ed23 commit 4c2c97c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/main.workflow

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ action "branch-filter" {
2828
action "deploy" {
2929
needs = ["branch-filter"]
3030
uses = "actions/bin/sh@master"
31-
args = ["echo Deploy with secret $PHONY_SECRET"]
31+
args = ["env"]
3232
secrets = ["PHONY_SECRET"]
33+
env = {
34+
PHONY_ENV = "foo"
35+
}
3336
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
},
1111
"devDependencies": {
1212
"chai": "^4.2.0",
13+
"chai-http": "^4.2.1",
1314
"mocha": "^5.2.0"
1415
},
1516
"scripts": {
16-
"start": "node index.js",
17-
"test": "mocha ./tests --recursive"
17+
"start": "node index.js",
18+
"test": "mocha ./tests --recursive"
1819
}
1920
}

0 commit comments

Comments
 (0)