Add preview link to PR #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add preview link to PR | |
on: | |
workflow_run: | |
workflows: ['Build'] | |
types: | |
- completed | |
permissions: | |
pull-requests: write | |
jobs: | |
comment-preview: | |
runs-on: ubuntu-latest | |
if: > | |
${{ github.event.workflow_run.event == 'pull_request' && | |
github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: 'Comment APSS link on workflow' | |
uses: trungleduc/appsharingspace-pr-comment/.github/actions/pr-comment@v2 | |
with: | |
github_token: ${{ secrets.github_token }} | |
index_path: lab/index.html | |
comment-galata: | |
runs-on: ubuntu-latest | |
if: > | |
${{ github.event.workflow_run.event == 'pull_request'}} | |
steps: | |
- name: 'Comment galata link on workflow' | |
uses: trungleduc/appsharingspace-pr-comment/.github/actions/pr-comment@v2 | |
with: | |
comment_prefix: '**Integration tests repot:**' | |
artifact_name: galata-apss | |
github_token: ${{ secrets.github_token }} | |
index_path: playwright-report/index.html |