Skip to content

Commit

Permalink
add on PR .yml to run preview
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliorivas committed May 18, 2024
1 parent 70fcd7b commit 78e9239
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: on-pull-request
run-name: on pull request activity

on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- closed
permissions:
contents: write
pull-requests: write
jobs:
build-preview:
uses: ./.github/workflows/preview.yml
8 changes: 2 additions & 6 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Deploy PR previews to GitHub Pages
concurrency: preview-${{ github.ref }}
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- closed
workflow_call:

permissions:
contents: write
pull-requests: write
Expand Down

0 comments on commit 78e9239

Please sign in to comment.