Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
0ndt committed Nov 14, 2024
1 parent 614711b commit b81aaff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# secrets-to-dotenv

[![e2e](https://github.com/thaind0/envfile/actions/workflows/e2e.yml/badge.svg)](https://github.com/thaind0/envfile/actions/workflows/e2e.yml)
[![e2e](https://github.com/0ndt/envfile/actions/workflows/e2e.yml/badge.svg)](https://github.com/0ndt/envfile/actions/workflows/e2e.yml)

This is a fork of [secrets-to-env-action](https://github.com/oNaiPs/secrets-to-env)

Expand Down Expand Up @@ -36,7 +36,7 @@ After

<td>
<pre>
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
- run: echo "Value of MY_SECRET1: $MY_SECRET1"
Expand All @@ -51,7 +51,7 @@ After
Add the following action to your workflow:

```yaml
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
```
Expand All @@ -64,7 +64,7 @@ Note the `secrets` key. It is **mandatory** so the action can read and export th
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
- run: echo "Value of MY_SECRET: $MY_SECRET"
Expand All @@ -75,7 +75,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
file: .prod.env
Expand All @@ -86,7 +86,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
no_env: true
Expand All @@ -97,7 +97,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
file:
Expand All @@ -110,7 +110,7 @@ Exclude defined secret(s) from list of secrets (comma separated, supports regex)
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
exclude: MY_SECRET, MY_OTHER_SECRETS*
Expand All @@ -122,7 +122,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
include: MY_SECRET, MY_OTHER_SECRETS*
Expand All @@ -140,7 +140,7 @@ Adds a prefix to all exported secrets.
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
prefix: PREFIXED_
Expand All @@ -156,7 +156,7 @@ env:
MY_SECRET: DONT_OVERRIDE
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
override: false
Expand All @@ -172,7 +172,7 @@ Available: `lower, upper, camel, constant, pascal, snake`.
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
convert: lower
Expand All @@ -184,7 +184,7 @@ steps:
```yaml
steps:
- uses: actions/checkout@v3
- uses: thaind0/envfile@v1
- uses: 0ndt/envfile@v2
with:
secrets: ${{ toJSON(secrets) }}
prefix: PREFIX_
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Export all secrets to environment variables and write to file'
description: 'Utility action that exports all github secrets environment variables and write to file.'
author: 'ThaiND'
author: '0ndt'
inputs:
secrets:
required: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/thaind0/secrets-to-dotenv-action.git"
"url": "git+https://github.com/0ndt/envfile.git"
},
"keywords": [
"actions",
Expand Down

0 comments on commit b81aaff

Please sign in to comment.