Skip to content

Commit

Permalink
Add step to post PR comment pointing to artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
hansec committed Feb 27, 2024
1 parent 005b4cc commit b4527a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,19 @@ jobs:
- name: Upload actions artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: pull_${{ github.event.pull_request.number }}-website
path: _site/
overwrite: true

- name: Add artifact to PR
if: github.event_name == 'pull_request'
uses: thollander/actions-comment-pull-request@v2
with:
message: |
An updated build of the documentation for this PR has been completed :incoming_envelope:. It can be accessed at ${{ steps.artifact-upload-step.outputs.artifact-url }}.
- name: Upload pages artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit b4527a5

Please sign in to comment.