diff --git a/.github/workflows/pr_storing_doc.yml b/.github/workflows/pr_storing_doc.yml index ef498f6..ad1d1c5 100644 --- a/.github/workflows/pr_storing_doc.yml +++ b/.github/workflows/pr_storing_doc.yml @@ -13,6 +13,7 @@ on: permissions: contents: read id-token: write + pull-requests: write jobs: # Single deploy job since we're just deploying @@ -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 + })