Skip to content

Commit

Permalink
Add comment feature to generate-docs (#135)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored Jun 7, 2021
1 parent 2cc7a13 commit a61bc22
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- master
workflow_dispatch:

env:
GITHUB_PAGES_URL: https://tier4.github.io/autoware.proj

jobs:
generate-docs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -86,3 +89,12 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
keep_files: true

- name: Comment PR
if: ${{ github.event.action == 'opened' }}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Documentation URL: ${{ env.GITHUB_PAGES_URL }}/pulls/${{ github.event.pull_request.number }}

0 comments on commit a61bc22

Please sign in to comment.