-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.17 KB
/
issue-to-hexo.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
name: Issue to Hexo
on:
issues:
types: [ milestoned ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
# - name: work branch
# run: |
# git checkout -b feat/issue-to-hexo-$(date '+%Y%m%d%H%I%S')
- name: init pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: init node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: 'src'
# - name: cd hexo
# run: cd src
- name: install dependencies
run: |
ls -a
pnpm install
- name: generate issue to hexo
uses: somidad/[email protected]
with:
issue_url: ${{ github.event.issue.url }}
token: ${{ github.token }}
- name: generate hexo
run: |
cd ..
pnpm run build
- name: create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: New blog by Action
base: master
branch: feat/new-blog-by-action