This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
71 lines (68 loc) · 1.95 KB
/
generate_template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Generate website
on:
workflow_dispatch:
inputs:
template_type:
description: "The template type"
required: true
default: "gh_pages"
type: choice
options:
- "gh_pages"
- "netlify"
- "vercel"
site_name:
type: string
required: true
description: "The name of the site"
site_url:
type: string
required: true
description: "The url of the site"
site_description:
type: string
required: true
description: "The description of the site"
site_author:
type: string
required: true
description: "The author of the site"
language:
type: string
required: true
description: "The language of the site"
auto_h1:
type: boolean
required: false
description: "Automatically add h1 to pages"
default: false
comments:
type: boolean
required: false
description: "Enable comments"
default: false
auto_merge:
description: "Automatically merge the pull request"
required: false
default: false
type: boolean
permissions:
contents: write
pull-requests: write
jobs:
run:
uses: "ObsidianPublisher/actions/.github/workflows/template.yml@main"
with:
site_name: ${{ inputs.site_name }}
site_url: ${{ inputs.site_url }}
site_description: ${{ inputs.site_description }}
site_author: ${{ inputs.site_author }}
language: ${{ inputs.language }}
auto_h1: ${{ inputs.auto_h1 }}
comments: ${{ inputs.comments }}
template_type: ${{ inputs.template_type }}
auto_merge: ${{ inputs.auto_merge }}
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
AUTHOR_EMAIL: ${{ secrets.AUTHOR_EMAIL || 'github-actions[bot]@users.noreply.github.com' }}
AUTHOR_NAME: ${{ secrets.AUTHOR_NAME || 'github-actions[bot]' }}