From ef3137a91c6050592f27bea258b8dcc8ecdbdda5 Mon Sep 17 00:00:00 2001 From: Rob Richard Date: Tue, 20 Sep 2022 14:08:52 -0400 Subject: [PATCH] fix github actions lint --- .github/workflows/cmd-publish-pr-on-npm.yml | 10 +++++----- .github/workflows/cmd-run-benchmark.yml | 6 +++--- .github/workflows/github-actions-bot.yml | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cmd-publish-pr-on-npm.yml b/.github/workflows/cmd-publish-pr-on-npm.yml index 115736fa70..b35ca89550 100644 --- a/.github/workflows/cmd-publish-pr-on-npm.yml +++ b/.github/workflows/cmd-publish-pr-on-npm.yml @@ -2,12 +2,12 @@ name: publish-pr-on-npm on: workflow_call: inputs: - pullRequestJSON: + pull_request_json: description: String that contain JSON payload for `pull_request` event. required: true type: string secrets: - NPM_CANARY_PR_PUBLISH_TOKEN: + npm_canary_pr_publish_token: description: NPM token to publish canary release. required: true jobs: @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v3 with: persist-credentials: false - ref: ${{ fromJSON(inputs.pullRequestJSON).merge_commit_sha }} + ref: ${{ fromJSON(inputs.pull_request_json).merge_commit_sha }} - name: Setup Node.js uses: actions/setup-node@v3 @@ -64,7 +64,7 @@ jobs: - name: Modify NPM package to be canary release env: - PULL_REQUEST_JSON: ${{ inputs.pullRequestJSON }} + PULL_REQUEST_JSON: ${{ inputs.pull_request_json }} uses: actions/github-script@v6 with: script: | @@ -105,7 +105,7 @@ jobs: - name: Publish NPM package run: npm publish --ignore-scripts ./npmDist env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_CANARY_PR_PUBLISH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.npm_canary_pr_publish_token }} - name: Upload replyMessage uses: actions/upload-artifact@v3 diff --git a/.github/workflows/cmd-run-benchmark.yml b/.github/workflows/cmd-run-benchmark.yml index f17e7ed2f0..7f8d5764b3 100644 --- a/.github/workflows/cmd-run-benchmark.yml +++ b/.github/workflows/cmd-run-benchmark.yml @@ -2,7 +2,7 @@ name: run-benchmark on: workflow_call: inputs: - pullRequestJSON: + pull_request_json: description: String that contain JSON payload for `pull_request` event. required: true type: string @@ -15,11 +15,11 @@ jobs: uses: actions/checkout@v3 with: persist-credentials: false - ref: ${{ fromJSON(inputs.pullRequestJSON).merge_commit_sha }} + ref: ${{ fromJSON(inputs.pull_request_json).merge_commit_sha }} - name: Deepen cloned repo env: - BASE_SHA: ${{ fromJSON(inputs.pullRequestJSON).base.sha }} + BASE_SHA: ${{ fromJSON(inputs.pull_request_json).base.sha }} run: 'git fetch --depth=1 origin "$BASE_SHA:refs/tags/BASE"' - name: Setup Node.js diff --git a/.github/workflows/github-actions-bot.yml b/.github/workflows/github-actions-bot.yml index fccdb4ebae..6f9b48f2ee 100644 --- a/.github/workflows/github-actions-bot.yml +++ b/.github/workflows/github-actions-bot.yml @@ -56,7 +56,7 @@ jobs: runs-on: ubuntu-latest outputs: cmd: ${{ steps.parse-cmd.outputs.cmd }} - pullRequestJSON: ${{ steps.parse-cmd.outputs.pullRequestJSON }} + pull_request_json: ${{ steps.parse-cmd.outputs.pull_request_json }} steps: - uses: actions/github-script@v6 with: @@ -76,23 +76,23 @@ jobs: const { url } = context.payload.issue.pull_request; const { data } = await github.request(url); - core.setOutput('pullRequestJSON', JSON.stringify(data, null, 2)); + core.setOutput('pull_request_json', JSON.stringify(data, null, 2)); cmd-publish-pr-on-npm: needs: [accept-cmd] if: needs.accept-cmd.outputs.cmd == 'publish-pr-on-npm' uses: ./.github/workflows/cmd-publish-pr-on-npm.yml with: - pullRequestJSON: ${{ needs.accept-cmd.outputs.pullRequestJSON }} + pull_request_json: ${{ needs.accept-cmd.outputs.pull_request_json }} secrets: - NPM_CANARY_PR_PUBLISH_TOKEN: ${{ secrets.NPM_CANARY_PR_PUBLISH_TOKEN }} + npm_canary_pr_publish_token: ${{ secrets.npm_canary_pr_publish_token }} cmd-run-benchmark: needs: [accept-cmd] if: needs.accept-cmd.outputs.cmd == 'run-benchmark' uses: ./.github/workflows/cmd-run-benchmark.yml with: - pullRequestJSON: ${{ needs.accept-cmd.outputs.pullRequestJSON }} + pull_request_json: ${{ needs.accept-cmd.outputs.pull_request_json }} respond-to-cmd: needs: