Skip to content

Commit

Permalink
Updated the Action Input variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
ashneilson committed Apr 30, 2022
1 parent b548c8f commit 4abf08e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ A Simple Action that uses `@bugsnag/source-maps` to upload sourcemaps from a Loc

## Inputs

### `api-key`
### `apiKey`

**Required** A Bugsnag API Key

### `directory`

**Required** Path to the Directory containing Source Map Files (e.g. ./sourcemaps)

### `base-url`
### `baseUrl`

**Required** Base URL that JS Bundles are served from (can contain * wildcards - e.g. https://*.mydomain.com/js)

### `app-version`
### `appVersion`

**Required** The Version of the Application these Source Maps belong to (this should match the `appVersion` configured in your Notifier)

Expand All @@ -34,10 +34,10 @@ _Optional_ Customize the Upload Endpoint for Bugsnag On-Premise
```yml
uses: ricado-group/bugsnag-sourcemaps-upload-action@v1
with:
api-key: ${{ secrets.BUGSNAG_APIKEY }}
apiKey: ${{ secrets.BUGSNAG_APIKEY }}
directory: ./sourcemaps
base-url: 'https://*.mydomain.com/js'
app-version: '1.0.0'
baseUrl: 'https://*.mydomain.com/js'
appVersion: '1.0.0'
overwrite: true
```
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ branding:

# Inputs
inputs:
api-key:
apiKey:
description: 'A Bugsnag API Key'
required: true
directory:
description: 'Path to the Directory containing Source Map Files (e.g. ./sourcemaps)'
required: true
base-url:
baseUrl:
description: 'Base URL that JS Bundles are served from (can contain * wildcards - e.g. https://*.mydomain.com/js)'
required: true
app-version:
appVersion:
description: 'The Version of the Application these Source Maps belong to (this should match the `appVersion` configured in your Notifier)'
required: true
overwrite:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ricado/bugsnag-sourcemaps-upload-action",
"version": "0.1.0",
"version": "0.1.1",
"description": "A Simple Action that uses `@bugsnag/source-maps` to upload sourcemaps from a Local Directory to Bugsnag",
"main": "lib/index.js",
"scripts": {
Expand Down
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ async function run(): Promise<void>
return;
}

const baseUrl = core.getInput('base-url');
const baseUrl = core.getInput('baseUrl');

if(baseUrl.length === 0)
{
core.setFailed(`The 'base-url' Input is Required`);
core.setFailed(`The 'baseUrl' Input is Required`);
return;
}

const apiKey = core.getInput('api-key');
const apiKey = core.getInput('apiKey');

if(apiKey.length === 0)
{
core.setFailed(`The 'api-key' Input is Required`);
core.setFailed(`The 'apiKey' Input is Required`);
return;
}

const appVersion = core.getInput('app-version');
const appVersion = core.getInput('appVersion');

if(appVersion.length === 0)
{
core.setFailed(`The 'app-version' Input is Required`);
core.setFailed(`The 'appVersion' Input is Required`);
return;
}

Expand Down

0 comments on commit 4abf08e

Please sign in to comment.