From ffe8736e704c17c7c7b2ad6b0f423e840b425544 Mon Sep 17 00:00:00 2001 From: hemengyang Date: Fri, 7 Apr 2023 22:03:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:construction=5Fworker:=20=E9=80=82?= =?UTF-8?q?=E9=85=8D=E6=9C=80=E6=96=B0=E7=9A=84=20Publish=20Bot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-bot.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/publish-bot.yml index 9a628156e0db..d6d0e9520d9d 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/publish-bot.yml @@ -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 }} @@ -56,7 +58,6 @@ jobs: - name: NoneBot2 Publish Bot uses: docker://ghcr.io/nonebot/nonebot2-publish-bot:latest with: - token: ${{ steps.generate-token.outputs.token }} config: > { "base": "master", @@ -67,3 +68,8 @@ jobs: env: PLUGIN_TEST_RESULT: ${{ needs.plugin_test.outputs.result }} PLUGIN_TEST_OUTPUT: ${{ needs.plugin_test.outputs.output }} + GITHUB_APPS: > + [{ + "app_id": "${{ secrets.APP_ID }}", + "private_key": "${{ secrets.APP_KEY }}" + }] From 914e43b32a9baf363af320f376a77e7e0163328f Mon Sep 17 00:00:00 2001 From: hemengyang Date: Fri, 7 Apr 2023 23:34:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?:construction=5Fworker:=20=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E4=B8=BA=20NoneFlow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{publish-bot.yml => noneflow.yml} | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) rename .github/workflows/{publish-bot.yml => noneflow.yml} (79%) diff --git a/.github/workflows/publish-bot.yml b/.github/workflows/noneflow.yml similarity index 79% rename from .github/workflows/publish-bot.yml rename to .github/workflows/noneflow.yml index d6d0e9520d9d..700fec014a57 100644 --- a/.github/workflows/publish-bot.yml +++ b/.github/workflows/noneflow.yml @@ -1,4 +1,4 @@ -name: NoneBot2 Publish Bot +name: NoneFlow on: issues: @@ -37,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 @@ -55,8 +55,8 @@ 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: config: > { @@ -68,8 +68,5 @@ jobs: env: PLUGIN_TEST_RESULT: ${{ needs.plugin_test.outputs.result }} PLUGIN_TEST_OUTPUT: ${{ needs.plugin_test.outputs.output }} - GITHUB_APPS: > - [{ - "app_id": "${{ secrets.APP_ID }}", - "private_key": "${{ secrets.APP_KEY }}" - }] + APP_ID: ${{ secrets.APP_ID }} + PRIVATE_KEY: ${{ secrets.APP_KEY }}