Skip to content

Commit d72a820

Browse files
authored
Create deploy-preview-reusable.yml
1 parent ad80839 commit d72a820

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- main # work off main branch
5+
pull_request_target: # this workflow triggers either when there's a push to main OR when a PR is opened/updated
6+
types: [opened, synchronize, reopened]
7+
workflow_dispatch: # it also can be triggered manually, and in that case the destination will be required and called "manual_run"
8+
inputs:
9+
destination:
10+
description: "Define destination base path"
11+
required: true
12+
default: "manual_run"
13+
14+
jobs:
15+
call-workflow:
16+
uses: FujoWebDev/.github/.github/workflows/deploy-preview-static.yaml@main

0 commit comments

Comments
 (0)