Skip to content

Commit

Permalink
workflow test-19
Browse files Browse the repository at this point in the history
  • Loading branch information
ObedVega committed Feb 21, 2024
1 parent e14af8d commit a8dc649
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

0 comments on commit a8dc649

Please sign in to comment.