mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-08-08 01:45:03 +02:00
feat: load every environment from --env-file to workflow (#184)
* feat: load every environment from --env-file to workflow * fix: pass dotenv's environments through by context * updates to support --secret-file Co-authored-by: Casey Lee <[email protected]>
This commit is contained in:
co-authored by
Casey Lee
parent
f6e37a8d67
commit
2f395475b0
Vendored
+1
-3
@@ -1,4 +1,2 @@
|
||||
-W .
|
||||
-s MY_SECRET
|
||||
-s MULTILINE_SECRET
|
||||
-s JSON_SECRET
|
||||
--secret-file .secrets
|
||||
|
||||
Vendored
+2
-3
@@ -1,3 +1,2 @@
|
||||
MY_SECRET=top-secret
|
||||
MULTILINE_SECRET="foo\nbar\nbaz"
|
||||
JSON_SECRET={"foo": "bar"}
|
||||
HELLO=WORLD
|
||||
MULTILINE_ENV="foo\nbar\nbaz"
|
||||
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
MY_SECRET=top-secret
|
||||
MULTILINE_SECRET="foo\nbar\nbaz"
|
||||
JSON_SECRET={"foo": "bar"}
|
||||
Vendored
+4
@@ -11,3 +11,7 @@ jobs:
|
||||
echo "${{secrets.MULTILINE_SECRET}}" | wc -l | grep 3
|
||||
- run: |
|
||||
echo '${{secrets.JSON_SECRET}}' | grep "{\"foo\": \"bar\"}"
|
||||
- run: |
|
||||
echo '${{env.HELLO}}' | grep "WORLD"
|
||||
- run: |
|
||||
echo "${{env.MULTILINE_ENV}}" | wc -l | grep 3
|
||||
|
||||
Reference in New Issue
Block a user