Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: 使用最新的 NoneFlow #1899

Merged
merged 2 commits into from
Apr 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}