diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e39d00..0e5345e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/local_action.yml b/.github/workflows/local_action.yml index b7a981e..18d5844 100644 --- a/.github/workflows/local_action.yml +++ b/.github/workflows/local_action.yml @@ -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 diff --git a/README.md b/README.md index 9235e76..7135610 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ 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) }} ``` @@ -14,7 +14,7 @@ with: 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) }} @@ -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_* diff --git a/action.yml b/action.yml index b1cc4ac..160ec33 100644 --- a/action.yml +++ b/action.yml @@ -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' \ No newline at end of file diff --git a/package.json b/package.json index 96e627a..a0abba4 100644 --- a/package.json +++ b/package.json @@ -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"