From a8dc649dfbee8b8ef909a7213f563cf0a2071281 Mon Sep 17 00:00:00 2001 From: obed vega Date: Wed, 21 Feb 2024 15:26:59 -0800 Subject: [PATCH] workflow test-19 --- .github/workflows/lighthouse.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index 1874bc4..ad1f9d9 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -20,16 +20,9 @@ jobs: uses: actions/github-script@v7 id: set-result with: + token: ${{ secrets.GITHUB_TOKEN }} script: return "Hello!" result-encoding: string - name: Get result run: echo "${{steps.set-result.outputs.result}}" - - name: Leave Comment - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const gh = require('@actions/github'); - const octokit = new gh.GitHub(process.env.GITHUB_TOKEN); - const user = await octokit.users.getAuthenticated(); - console.log(`El token pertenece al usuario: ${user.data.login}`); \ No newline at end of file + \ No newline at end of file