From 8f281242377ab19da2319363f55b8750a6b0ec04 Mon Sep 17 00:00:00 2001 From: uy/sun Date: Sat, 8 Apr 2023 00:07:39 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20CI:=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=9C=80=E6=96=B0=E7=9A=84=20NoneFlow=20(#1899)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/{publish-bot.yml => noneflow.yml} | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) rename .github/workflows/{publish-bot.yml => noneflow.yml} (82%) diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/noneflow.yml similarity index 82% rename from .github/workflows/publish-bot.yml rename to .github/workflows/noneflow.yml index 9a628156..700fec01 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/noneflow.yml @@ -1,4 +1,4 @@ -name: NoneBot2 Publish Bot +name: NoneFlow on: issues: @@ -7,6 +7,8 @@ on: types: [closed] issue_comment: types: [created] + pull_request_review: + types: [submitted] concurrency: group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }} @@ -35,10 +37,10 @@ jobs: - name: Test Plugin id: plugin-test run: | - curl -sSL https://github.com/nonebot/nonebot2-publish-bot/releases/latest/download/plugin_test.py | python - - publish_bot: + curl -sSL https://github.com/nonebot/noneflow/releases/latest/download/plugin_test.py | python - + noneflow: runs-on: ubuntu-latest - name: nonebot2 publish bot + name: noneflow needs: plugin_test steps: - name: Generate token @@ -53,10 +55,9 @@ jobs: with: token: ${{ steps.generate-token.outputs.token }} - - name: NoneBot2 Publish Bot - uses: docker://ghcr.io/nonebot/nonebot2-publish-bot:latest + - name: NoneFlow + uses: docker://ghcr.io/nonebot/noneflow:latest with: - token: ${{ steps.generate-token.outputs.token }} config: > { "base": "master", @@ -67,3 +68,5 @@ jobs: env: PLUGIN_TEST_RESULT: ${{ needs.plugin_test.outputs.result }} PLUGIN_TEST_OUTPUT: ${{ needs.plugin_test.outputs.output }} + APP_ID: ${{ secrets.APP_ID }} + PRIVATE_KEY: ${{ secrets.APP_KEY }}