-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.15 KB
/
setup.yaml
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
name: Setup repository
on: workflow_dispatch
permissions:
pages: read
contents: write
pull-requests: write
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
- name: Setup Pages
id: configure-pages
uses: actions/configure-pages@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
npm ci
npm run setup-repository --repository=${{ github.repository }} --pages_basepath=${{ steps.configure-pages.outputs.base_path }} --pages_baseurl=${{ steps.configure-pages.outputs.base_url }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: setup repository'
title: 'chore: setup repository'
body: |
This is an automated pull request to setup the repository.
It will be automatically closed if no commits are made to this branch within 30 days.
branch: setup-repository
branch-suffix: timestamp
delete-branch: true