From df17cdaaaa2ea9e3e5e37ae442c4eab9e714ae8b Mon Sep 17 00:00:00 2001 From: obed vega Date: Wed, 21 Feb 2024 15:13:12 -0800 Subject: [PATCH] workflow test-15 --- .github/workflows/lighthouse.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index a94d339..91883a3 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -23,4 +23,18 @@ jobs: script: return "Hello!" result-encoding: string - name: Get result - run: echo "${{steps.set-result.outputs.result}}" \ No newline at end of file + run: echo "${{steps.set-result.outputs.result}}" + - name: Leave Comment + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const github = require('@actions/github'); + const context = github.context; + const octokit = new github.GitHub(process.env.GITHUB_TOKEN); + octokit.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + body: 'Hello!' + }); \ No newline at end of file