Skip to content

Commit

Permalink
Preview PR using appsharing.space (jupytercad#403)
Browse files Browse the repository at this point in the history
Add workflow to comment preview link to PR
  • Loading branch information
trungleduc authored Sep 10, 2024
1 parent 8cefd25 commit 86a447c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/binder-on-pr.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/comment-on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add preview link to PR

on:
workflow_run:
workflows: ['Build']
types:
- completed

permissions:
pull-requests: write

jobs:
comment:
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@v1
with:
index_path: lab/index.html

0 comments on commit 86a447c

Please sign in to comment.