Skip to content

Workflow file for this run

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 }}