fix #121 and #123 - add support for reading env variables from .env (#133)

This commit is contained in:
Casey Lee
2020-03-06 12:30:24 -08:00
committed by GitHub
parent af970769d7
commit 4fde7d8865
14 changed files with 629 additions and 0 deletions

3
pkg/runner/testdata/secrets/.env vendored Normal file
View File

@@ -0,0 +1,3 @@
MY_SECRET=top-secret
MULTILINE_SECRET="foo\nbar\nbaz"
JSON_SECRET={"foo": "bar"}

View File

@@ -7,3 +7,7 @@ jobs:
steps:
- run: |
echo '${{secrets.MY_SECRET}}' | grep 'top-secret'
- run: |
echo "${{secrets.MULTILINE_SECRET}}" | wc -l | grep 3
- run: |
echo '${{secrets.JSON_SECRET}}' | grep "{\"foo\": \"bar\"}"