👷 support issue auto close and gitee repo auto asny

👷 support issue auto close and gitee repo auto asny

👷 support issue auto close and gitee repo auto asny
This commit is contained in:
MicLng 2021-10-27 11:41:54 +08:00
parent 1586d8f213
commit 73f4d7702b
2 changed files with 46 additions and 0 deletions

23
.github/workflows/issue.yml vendored Normal file
View File

@ -0,0 +1,23 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: PIG Github 自动回复消息
on:
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Close Issue
if: github.repository == 'pig-mesh/pig'
uses: peter-evans/close-issue@v1
with:
issue-number: ${{ github.event.issue.number }}
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
comment:
您好!技术问题请在 https://issue.pig4cloud.com 反馈,
Github 提问不会处理此issue将自动关闭。

23
.github/workflows/sync-gitee-mirror.yml vendored Normal file
View File

@ -0,0 +1,23 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: PIG 代码同步至 gitee
on:
push:
branches: [ master,dev ]
pull_request:
branches: [ master,dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: sync-gitee-mirror
if: github.repository == 'pig-mesh/pig'
uses: abersheeran/sync-gitee-mirror@v1-beta
with:
repository: log4j/pig
username: ${{ secrets.GITEE_USERNAME }}
password: ${{ secrets.GITEE_PASSWORD }}