Skip to content

Commit

Permalink
Merge pull request Firenza#5 from Firenza/update-to-node20
Browse files Browse the repository at this point in the history
feat(): update to node20
  • Loading branch information
mennlo authored Apr 17, 2024
2 parents aa569fe + 0f869cc commit fa25c79
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: 'package.json'

- name: Install packages
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/local_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: All secrets to environment variables
uses: ./ # Uses an action in the root directory
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Copies the specified secrets from the repository into environment variables. Thi
Copy all secrets

```yaml
uses: Firenza/secrets-to-env@v1.2.0
uses: Firenza/secrets-to-env@v1.3.0
with:
secrets: ${{ toJSON(secrets) }}
```
Only copy secrets with names starting with `TF_VAR_`

```yaml
uses: Firenza/secrets-to-env@v1.2.0
uses: Firenza/secrets-to-env@v1.3.0
with:
secrets: ${{ toJSON(secrets) }}
Expand All @@ -24,7 +24,7 @@ with:
Only copy secrets with names starting with `TF_VAR_` and have the copied environment variable names have everything after `TF_VAR_` be lowercase.

```yaml
uses: Firenza/secrets-to-env@v1.2.0
uses: Firenza/secrets-to-env@v1.3.0
with:
secrets: ${{ toJSON(secrets) }}
secret_filter_regex: TF_VAR_*
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ inputs:
description: "regex to select secret name text to make lower case"
required: false
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "Copies the specified secrets from the repository into environment variables",
"main": "index.js",
"engines": {
"node": ">=20.0.0"
},
"scripts": {
"build": "ncc build main.js",
"test": "jest"
Expand Down

0 comments on commit fa25c79

Please sign in to comment.