Skip to content

Commit 3e5239f

Browse files
authored
fix github actions lint (#3744)
1 parent cbc22f2 commit 3e5239f

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.github/workflows/cmd-publish-pr-on-npm.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: publish-pr-on-npm
22
on:
33
workflow_call:
44
inputs:
5-
pullRequestJSON:
5+
pull_request_json:
66
description: String that contain JSON payload for `pull_request` event.
77
required: true
88
type: string
99
secrets:
10-
NPM_CANARY_PR_PUBLISH_TOKEN:
10+
npm_canary_pr_publish_token:
1111
description: NPM token to publish canary release.
1212
required: true
1313
jobs:
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v3
1919
with:
2020
persist-credentials: false
21-
ref: ${{ fromJSON(inputs.pullRequestJSON).merge_commit_sha }}
21+
ref: ${{ fromJSON(inputs.pull_request_json).merge_commit_sha }}
2222

2323
- name: Setup Node.js
2424
uses: actions/setup-node@v3
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: Modify NPM package to be canary release
6666
env:
67-
PULL_REQUEST_JSON: ${{ inputs.pullRequestJSON }}
67+
PULL_REQUEST_JSON: ${{ inputs.pull_request_json }}
6868
uses: actions/github-script@v6
6969
with:
7070
script: |
@@ -105,7 +105,7 @@ jobs:
105105
- name: Publish NPM package
106106
run: npm publish --ignore-scripts ./npmDist
107107
env:
108-
NODE_AUTH_TOKEN: ${{ secrets.NPM_CANARY_PR_PUBLISH_TOKEN }}
108+
NODE_AUTH_TOKEN: ${{ secrets.npm_canary_pr_publish_token }}
109109

110110
- name: Upload replyMessage
111111
uses: actions/upload-artifact@v3

.github/workflows/cmd-run-benchmark.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: run-benchmark
22
on:
33
workflow_call:
44
inputs:
5-
pullRequestJSON:
5+
pull_request_json:
66
description: String that contain JSON payload for `pull_request` event.
77
required: true
88
type: string
@@ -15,11 +15,11 @@ jobs:
1515
uses: actions/checkout@v3
1616
with:
1717
persist-credentials: false
18-
ref: ${{ fromJSON(inputs.pullRequestJSON).merge_commit_sha }}
18+
ref: ${{ fromJSON(inputs.pull_request_json).merge_commit_sha }}
1919

2020
- name: Deepen cloned repo
2121
env:
22-
BASE_SHA: ${{ fromJSON(inputs.pullRequestJSON).base.sha }}
22+
BASE_SHA: ${{ fromJSON(inputs.pull_request_json).base.sha }}
2323
run: 'git fetch --depth=1 origin "$BASE_SHA:refs/tags/BASE"'
2424

2525
- name: Setup Node.js

.github/workflows/github-actions-bot.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
runs-on: ubuntu-latest
5757
outputs:
5858
cmd: ${{ steps.parse-cmd.outputs.cmd }}
59-
pullRequestJSON: ${{ steps.parse-cmd.outputs.pullRequestJSON }}
59+
pull_request_json: ${{ steps.parse-cmd.outputs.pull_request_json }}
6060
steps:
6161
- uses: actions/github-script@v6
6262
with:
@@ -76,23 +76,23 @@ jobs:
7676
7777
const { url } = context.payload.issue.pull_request;
7878
const { data } = await github.request(url);
79-
core.setOutput('pullRequestJSON', JSON.stringify(data, null, 2));
79+
core.setOutput('pull_request_json', JSON.stringify(data, null, 2));
8080
8181
cmd-publish-pr-on-npm:
8282
needs: [accept-cmd]
8383
if: needs.accept-cmd.outputs.cmd == 'publish-pr-on-npm'
8484
uses: ./.github/workflows/cmd-publish-pr-on-npm.yml
8585
with:
86-
pullRequestJSON: ${{ needs.accept-cmd.outputs.pullRequestJSON }}
86+
pull_request_json: ${{ needs.accept-cmd.outputs.pull_request_json }}
8787
secrets:
88-
NPM_CANARY_PR_PUBLISH_TOKEN: ${{ secrets.NPM_CANARY_PR_PUBLISH_TOKEN }}
88+
npm_canary_pr_publish_token: ${{ secrets.npm_canary_pr_publish_token }}
8989

9090
cmd-run-benchmark:
9191
needs: [accept-cmd]
9292
if: needs.accept-cmd.outputs.cmd == 'run-benchmark'
9393
uses: ./.github/workflows/cmd-run-benchmark.yml
9494
with:
95-
pullRequestJSON: ${{ needs.accept-cmd.outputs.pullRequestJSON }}
95+
pull_request_json: ${{ needs.accept-cmd.outputs.pull_request_json }}
9696

9797
respond-to-cmd:
9898
needs:

0 commit comments

Comments
 (0)