Skip to content

Commit

Permalink
Attempt to publish comment to PR
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-qieqingy committed Jan 2, 2025
1 parent cd292f2 commit eaf52fc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pr_storing_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
permissions:
contents: read
id-token: write
pull-requests: write

jobs:
# Single deploy job since we're just deploying
Expand Down Expand Up @@ -42,3 +43,15 @@ jobs:
name: upload-pr-doc
path: _apidoc
retention-days: 7
- name: Comment Artifact Link
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const workflow_id = context.runId
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Please download and review the generated API doc at https://github.com/aws-neuron/nki-samples/actions/runs/' + workflow_id
})

0 comments on commit eaf52fc

Please sign in to comment.