Skip to content

Commit

Permalink
Fix variable name case-sensitivity (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
qetza authored Mar 16, 2024
1 parent 22e8e80 commit 60659a6
Show file tree
Hide file tree
Showing 8 changed files with 1,911 additions and 1,782 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,29 @@ jobs:
- name: Build
run: npm run build

test:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.runs-on }}
needs: build

steps:
- uses: actions/checkout@v4

- name: Setup nodejs 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies
run: npm ci

- name: Test
run: npm run test

test:
test-run:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -78,7 +97,7 @@ jobs:
[
${{ toJSON(vars) }},
${{ toJSON(secrets) }},
{ "VAR2": "#{inline}#value2", "inline": "inline_" },
{ "var2": "#{INLINE}#value2", "inline": "inline_" },
${{ toJSON(format('@{0}/tests/data/vars.jsonc', github.workspace)) }},
"@**/*.(json|yml);!**/settings*",
"$ENV_VARS"
Expand All @@ -88,7 +107,7 @@ jobs:
recursive: true
transforms: true
env:
ENV_VARS: '{ "VAR4": "env_value4" }'
ENV_VARS: '{ "var4": "env_value4" }'

- name: Check action outputs
run: |
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v1.1.1
- Fix variable case-sensitivity ([#7](https://github.com/qetza/replacetokens-action/issues/7)).

## v1.1.0
- Add support for JSON comments in _variables_ and in JSON variable files and environment variables
- Add support for multiple glob patterns separeted by a semi-colon (`;`) using [fast-glob](https://github.com/mrmlnc/fast-glob) in variable file paths
Expand Down
Loading

0 comments on commit 60659a6

Please sign in to comment.