Skip to content

Commit

Permalink
check live
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfdm committed Dec 27, 2023
1 parent 55f846a commit c352b3c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/website-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@ jobs:
monorepo_package: website

- name: foo
run: echo ${{ steps.netlify_deploy.outputs.NETLIFY_PREVIEW_URL }}
run: echo ${{ steps.netlify_deploy.outputs.NETLIFY_LIVE_URL }}

- uses: actions/github-script@v7
env:
NETLIFY_PREVIEW_URL: ${{ steps.netlify_deploy.outputs.NETLIFY_PREVIEW_URL }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
async function comment(){
console.log(process.env)
const result = await github.rest.repos.listPullRequestsAssociatedWithCommit({
owner: context.repo.owner,
repo: context.repo.repo,
commit_sha: context.sha,
})
# - uses: actions/github-script@v7
# env:
# NETLIFY_PREVIEW_URL: ${{ steps.netlify_deploy.outputs.NETLIFY_PREVIEW_URL }}
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# async function comment(){
# console.log(process.env)
# const result = await github.rest.repos.listPullRequestsAssociatedWithCommit({
# owner: context.repo.owner,
# repo: context.repo.repo,
# commit_sha: context.sha,
# })

const issueNumber = result.data[0].number
# const issueNumber = result.data[0].number

# await github.rest.issues.createComment({
# issue_number: issueNumber,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: 'Preview URL: '
# })
}
# await github.rest.issues.createComment({
# issue_number: issueNumber,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: 'Preview URL: '
# })
# }

await comment()
# comment()

0 comments on commit c352b3c

Please sign in to comment.