mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:15:24 +08:00
👷 CI: 使用最新的 NoneFlow (#1899)
This commit is contained in:
parent
f3d7a30c66
commit
8f28124237
@ -1,4 +1,4 @@
|
|||||||
name: NoneBot2 Publish Bot
|
name: NoneFlow
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
@ -7,6 +7,8 @@ on:
|
|||||||
types: [closed]
|
types: [closed]
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
pull_request_review:
|
||||||
|
types: [submitted]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
|
||||||
@ -35,10 +37,10 @@ jobs:
|
|||||||
- name: Test Plugin
|
- name: Test Plugin
|
||||||
id: plugin-test
|
id: plugin-test
|
||||||
run: |
|
run: |
|
||||||
curl -sSL https://github.com/nonebot/nonebot2-publish-bot/releases/latest/download/plugin_test.py | python -
|
curl -sSL https://github.com/nonebot/noneflow/releases/latest/download/plugin_test.py | python -
|
||||||
publish_bot:
|
noneflow:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: nonebot2 publish bot
|
name: noneflow
|
||||||
needs: plugin_test
|
needs: plugin_test
|
||||||
steps:
|
steps:
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
@ -53,10 +55,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
|
|
||||||
- name: NoneBot2 Publish Bot
|
- name: NoneFlow
|
||||||
uses: docker://ghcr.io/nonebot/nonebot2-publish-bot:latest
|
uses: docker://ghcr.io/nonebot/noneflow:latest
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
|
||||||
config: >
|
config: >
|
||||||
{
|
{
|
||||||
"base": "master",
|
"base": "master",
|
||||||
@ -67,3 +68,5 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PLUGIN_TEST_RESULT: ${{ needs.plugin_test.outputs.result }}
|
PLUGIN_TEST_RESULT: ${{ needs.plugin_test.outputs.result }}
|
||||||
PLUGIN_TEST_OUTPUT: ${{ needs.plugin_test.outputs.output }}
|
PLUGIN_TEST_OUTPUT: ${{ needs.plugin_test.outputs.output }}
|
||||||
|
APP_ID: ${{ secrets.APP_ID }}
|
||||||
|
PRIVATE_KEY: ${{ secrets.APP_KEY }}
|
Loading…
Reference in New Issue
Block a user