Skip to content

Commit

Permalink
Add list of secrets example for include/exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
oNaiPs committed Feb 5, 2023
1 parent 3aac20e commit 6e5830e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,27 @@ steps:

**Include or exclude secrets:**

Exclude defined secret `MY_SECRET` from list of secrets.
Exclude defined secret(s) from list of secrets (comma separated).

```yaml
steps:
- uses: actions/checkout@v3
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
exclude: MY_SECRET
exclude: MY_SECRET, MY_OTHER_SECRET
# MY_SECRET is not exported
```

**Only** include secret `MY_SECRET`
**Only** include secret(s) from list of secrets (comma separated).

```yaml
steps:
- uses: actions/checkout@v3
- uses: oNaiPs/secrets-to-env-action@v1
with:
secrets: ${{ toJSON(secrets) }}
include: MY_SECRET
include: MY_SECRET, MY_OTHER_SECRET
- run: echo "Value of MY_SECRET: $MY_SECRET"
```

Expand Down

0 comments on commit 6e5830e

Please sign in to comment.