-
Notifications
You must be signed in to change notification settings - Fork 37
41 lines (36 loc) · 1.09 KB
/
issue-trigger.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
name: Issue Trigger Gengen
on:
issues:
types: [edited, deleted, closed, reopened, labeled, unlabeled]
jobs:
Generate_Page:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: 1.15
- name: Run Gengen
run: go run gengen.go
- name: Push Pages
uses: github-actions-x/[email protected]
with:
email: [email protected]
name: GitHub Actions Autocommitter
branch: master
files: docs
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.issue.number }}
comment-author: 'github-actions[bot]'
- name: Create comment
if: steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: |
已发布: https://disksing.com/sao-gen-gen/${{ github.event.issue.number }}