-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement an option to downcase
TF_VAR_
(#7)
- Loading branch information
Showing
5 changed files
with
129 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,22 @@ Export GitHub Actions secrets as environment variables. | |
|
||
## Usage | ||
|
||
```yml | ||
Set the JSON of secrets to `secrets`. | ||
|
||
```yaml | ||
steps: | ||
- uses: koyashiro/[email protected] | ||
with: | ||
secrets: ${{ toJSON(secrets) }} | ||
``` | ||
If you want to downcase secrets starting with `TF_VAR_`, you can use the `downcase-tf-var` option. | ||
For example, a secret like `TF_VAR_EXAMPLE` will be exported as `TF_VAR_example`. | ||
|
||
```yaml | ||
steps: | ||
- uses: koyashiro/[email protected] | ||
with: | ||
secrets: ${{ toJSON(secrets) }} | ||
downcase-tf-var: true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters