Skip to content

Commit 6ac3e77

Browse files
authored
alter name style (#2)
1 parent 9b5d893 commit 6ac3e77

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

.github/workflows/example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
token: ${{ secrets.GITHUB_TOKEN }}
1818
public-key: ${{ secrets.TIDB_CLOUD_PUBLIC_KEY }}
1919
private-key: ${{ secrets.TIDB_CLOUD_PRIVATE_KEY }}
20-
addMask: false
20+
add-mask: false
2121
env: dev
2222
- name: Use the output
2323
run: |

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ with:
1919

2020
The action supports the following inputs:
2121
- token - (required) The GitHub token to use for making API requests. Typically, this would be set to ${{ secrets.GITHUB_TOKEN }}.
22-
- publicKey - (required) The public key of TiDB Cloud api. Generate it from [TiDB Cloud](https://tidbcloud.com/).
23-
- privateKey - (required) The private key of TiDB Cloud api. Generate it from [TiDB Cloud](https://tidbcloud.com/).
24-
- intervalSeconds - (optional) The interval seconds to check the status of TiDB Cloud Branch check. Default is 10.
25-
- timeoutSeconds - (optional) The timeout seconds to wait for TiDB Cloud Branch check. Default is 300.
26-
- addMask - (optional) Whether to add mask for the password output. Default is true.
22+
- public-key - (required) The public key of TiDB Cloud api. Generate it from [TiDB Cloud](https://tidbcloud.com/).
23+
- private-key - (required) The private key of TiDB Cloud api. Generate it from [TiDB Cloud](https://tidbcloud.com/).
24+
- interval-seconds - (optional) The interval seconds to check the status of TiDB Cloud Branch check. Default is 10.
25+
- timeout-seconds - (optional) The timeout seconds to wait for TiDB Cloud Branch check. Default is 300.
26+
- add-mask - (optional) Whether to add mask for the password output. Default is true.
2727

2828
## Outputs
2929

@@ -75,7 +75,7 @@ jobs:
7575
token: ${{ secrets.GITHUB_TOKEN }}
7676
public-key: ${{ secrets.TIDB_CLOUD_API_PUBLIC_KEY }}
7777
private-key: ${{ secrets.TIDB_CLOUD_API_PRIVATE_KEY }}
78-
addMask: false
78+
add-mask: false
7979
outputs:
8080
username: ${{ steps.wait-for-branch.outputs.username }}
8181
port : ${{ steps.wait-for-branch.outputs.port }}

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ inputs:
88
token:
99
description: 'The GitHub token to use for making API requests.'
1010
required: true
11-
timeoutSeconds:
11+
timeout-seconds:
1212
description: 'The number of seconds to wait for the branch ready.'
1313
default: '300'
14-
intervalSeconds:
14+
interval-seconds:
1515
description: 'The number of seconds to wait before each check.'
1616
default: '10'
1717
public-key:
@@ -20,7 +20,7 @@ inputs:
2020
private-key:
2121
description: 'The private key of TiDB Cloud API.'
2222
required: true
23-
addMask:
23+
add-mask:
2424
description: 'Whether to add mask for the output.'
2525
default: 'true'
2626
env:

dist/index.js

Lines changed: 3 additions & 3 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ async function run(): Promise<void> {
3030
repo: context.repo.repo,
3131
ref: context.payload.pull_request.head.sha,
3232

33-
timeoutSeconds: parseInt(core.getInput('timeoutSeconds')),
34-
intervalSeconds: parseInt(core.getInput('intervalSeconds'))
33+
timeoutSeconds: parseInt(core.getInput('timeout-seconds')),
34+
intervalSeconds: parseInt(core.getInput('interval-seconds'))
3535
})
3636

3737
// check result
@@ -52,7 +52,7 @@ async function run(): Promise<void> {
5252
privateKey,
5353
core.getInput('env')
5454
)
55-
if (core.getInput('addMask') === 'true') {
55+
if (core.getInput('add-mask') === 'true') {
5656
core.info('addMask is true, set secret for sql user password')
5757
core.setSecret(sqlUser.password)
5858
}

0 commit comments

Comments
 (0)