知乎造句:我是来开会的 #237
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |