diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml new file mode 100644 index 00000000..302d8a43 --- /dev/null +++ b/.github/workflows/issue.yml @@ -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将自动关闭。 + diff --git a/.github/workflows/sync-gitee-mirror.yml b/.github/workflows/sync-gitee-mirror.yml new file mode 100644 index 00000000..ab2a5f5f --- /dev/null +++ b/.github/workflows/sync-gitee-mirror.yml @@ -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 }} +