Skip to content

Tegami PR Comment

Tegami PR Comment #1

name: Tegami PR Comment
on:
workflow_run:
workflows: ["Tegami PR"]
types: [completed]
jobs:
comment:
if: >
github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_repository.full_name == github.repository
runs-on: ubuntu-latest
permissions:
actions: read
pull-requests: write
steps:
- uses: actions/checkout@v7
- name: Setup
uses: ./.github/setup
- uses: actions/download-artifact@v8
with:
name: tegami-pr-preview
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
- name: Post preview comment
run: pnpm tegami pr comment tegami-pr-preview.md
env:
GITHUB_TOKEN: ${{ github.token }}