Skip to content

Commit d420963

Browse files
authored
refactor: 💡 rename input variables to use hyphen-case (#14)
1 parent dfe4078 commit d420963

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030

3131
- uses: ./
3232
with:
33-
angular_version: 8.0.x
33+
angular-version: 8.0.x

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Create a workflow `.yml` file in your repositories `.github/workflows` directory
1414

1515
### Inputs
1616

17-
- `angular_version`: The base Angular version used to match the dependency version. Ex: 8.0.x, 10.0.x. To check the full list of supported versions, see [supported versions](###Supported-Angular-versions).
17+
- `angular-version`: The base Angular version used to match the dependency version. Ex: 8.0.x, 10.0.x. To check the full list of supported versions, see [supported versions](###Supported-Angular-versions).
1818

1919
### Example workflow - match Angular versions
2020

@@ -58,7 +58,7 @@ jobs:
5858
- name: Use Angular ${{ matrix.angular-version }}
5959
uses: ngworker/angular-versions-action@v1
6060
with:
61-
angular_version: ${{ matrix.angular-version }}
61+
angular-version: ${{ matrix.angular-version }}
6262

6363
- run: yarn install
6464
- run: yarn lint

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: 'Match Angular Versions'
22
description: 'Modifies the package.json with matching dependency versions for a given base Angular version'
33
author: 'GitHub'
44
inputs:
5-
angular_version:
5+
angular-version:
66
description: 'The base Angular version used to match the dependency versions'
77
required: true
8-
file_path:
8+
file-path:
99
description: 'Path of the package.json file to modify'
1010
required: false
1111
default: './package.json'

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import {PackageJsonVersion} from './types/package-json-version';
77

88
function run(): void {
99
try {
10-
const angularVersion: string = core.getInput('angular_version');
10+
const angularVersion: string = core.getInput('angular-version');
1111
core.debug(`Finding dependencies for Angular version ${angularVersion}`);
1212

1313
const angularVersions = getAngularVersions(angularVersion);
1414
core.debug(
1515
`Dependencies found: \n ${JSON.stringify(angularVersions, null, 2)}`
1616
);
1717

18-
const filePath: string = core.getInput('file_path');
18+
const filePath: string = core.getInput('file-path');
1919
core.debug(`Merging found dependencies with file ${filePath}`);
2020

2121
const projectVersions: PackageJsonVersion = JSON.parse(

0 commit comments

Comments
 (0)