Skip to content

Commit

Permalink
👷 CI: 使用最新的 NoneFlow (nonebot#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 authored Apr 7, 2023
1 parent f3d7a30 commit 8f28124
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NoneBot2 Publish Bot
name: NoneFlow

on:
issues:
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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",
Expand All @@ -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 }}

0 comments on commit 8f28124

Please sign in to comment.