Code Analyzer: Fix highlighter comment (#34624)

Fix highlighter comment
This commit is contained in:
Paul Sealock 2022-09-12 13:14:55 +12:00 committed by GitHub
parent 614d98ff60
commit 1314ad4ca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -17,8 +17,8 @@ jobs:
- name: Run analyzer - name: Run analyzer
id: run id: run
run: | run: |
version=$(pnpm run analyzer --filter code-analyzer -- major-minor "${{ github.head_ref || github.ref_name }}" "plugins/woocommerce/woocommerce.php" | tail -n 1) version=$(pnpm run analyzer --filter code-analyzer -- major-minor "${{ github.head_ref || github.ref_name }}" "plugins/woocommerce/woocommerce.php" | tail -n 1)
pnpm run analyzer --filter code-analyzer -- "$GITHUB_HEAD_REF" $version -o "github" pnpm run analyzer --filter code-analyzer -- "$GITHUB_HEAD_REF" $version -o "github"
- name: Print results - name: Print results
id: results id: results
run: echo "::set-output name=results::${{ steps.run.outputs.templates }}${{ steps.run.outputs.wphooks }}${{ steps.run.outputs.schema }}${{ steps.run.outputs.database }}" run: echo "::set-output name=results::${{ steps.run.outputs.templates }}${{ steps.run.outputs.wphooks }}${{ steps.run.outputs.schema }}${{ steps.run.outputs.database }}"
@ -37,7 +37,7 @@ jobs:
if: ${{ needs.analyze.outputs.results && (steps.find-comment.outputs.comment-id == '') }} if: ${{ needs.analyze.outputs.results && (steps.find-comment.outputs.comment-id == '') }}
uses: actions/github-script@v5 uses: actions/github-script@v5
with: with:
github-token: ${{ secrets.WC_BOT_TRIAGE_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
github.rest.issues.createComment({ github.rest.issues.createComment({
issue_number: context.issue.number, issue_number: context.issue.number,
@ -49,7 +49,7 @@ jobs:
if: ${{ needs.analyze.outputs.results && steps.find-comment.outputs.comment-id }} if: ${{ needs.analyze.outputs.results && steps.find-comment.outputs.comment-id }}
uses: actions/github-script@v5 uses: actions/github-script@v5
with: with:
github-token: ${{ secrets.WC_BOT_TRIAGE_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
github.rest.issues.updateComment({ github.rest.issues.updateComment({
comment_id: ${{ steps.find-comment.outputs.comment-id }}, comment_id: ${{ steps.find-comment.outputs.comment-id }},
@ -61,7 +61,7 @@ jobs:
if: ${{ !needs.analyze.outputs.results && steps.find-comment.outputs.comment-id }} if: ${{ !needs.analyze.outputs.results && steps.find-comment.outputs.comment-id }}
uses: actions/github-script@v5 uses: actions/github-script@v5
with: with:
github-token: ${{ secrets.WC_BOT_TRIAGE_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
github.rest.issues.deleteComment({ github.rest.issues.deleteComment({
comment_id: ${{ steps.find-comment.outputs.comment-id }}, comment_id: ${{ steps.find-comment.outputs.comment-id }},
@ -72,7 +72,7 @@ jobs:
if: ${{ needs.analyze.outputs.results }} if: ${{ needs.analyze.outputs.results }}
uses: actions/github-script@v5 uses: actions/github-script@v5
with: with:
github-token: ${{ secrets.WC_BOT_TRIAGE_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
github.rest.issues.addLabels({ github.rest.issues.addLabels({
issue_number: context.issue.number, issue_number: context.issue.number,
@ -85,7 +85,7 @@ jobs:
continue-on-error: true continue-on-error: true
uses: actions/github-script@v5 uses: actions/github-script@v5
with: with:
github-token: ${{ secrets.WC_BOT_TRIAGE_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
github.rest.issues.removeLabel({ github.rest.issues.removeLabel({
issue_number: context.issue.number, issue_number: context.issue.number,