Skip to content

Commit

Permalink
docs(example): registry 的 results 分支也需要 noneflow
Browse files Browse the repository at this point in the history
用来处理 config 合并。
  • Loading branch information
he0119 committed Dec 4, 2024
1 parent a56ccfd commit 97af307
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions examples/noneflow-results.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: NoneFlow

on:
pull_request_target:
types: [closed]
pull_request_review:
types: [submitted]

concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
cancel-in-progress: false

jobs:
noneflow:
runs-on: ubuntu-latest
name: noneflow
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_KEY }}

- name: Checkout Code
uses: actions/checkout@v4
with:
token: ${{ steps.generate-token.outputs.token }}

- name: NoneFlow
uses: docker://ghcr.io/nonebot/noneflow:latest
with:
config: >
{
"base": "master",
"plugin_path": "assets/plugins.json5",
"bot_path": "assets/bots.json5",
"adapter_path": "assets/adapters.json5"
}
env:
APP_ID: ${{ secrets.APP_ID }}
PRIVATE_KEY: ${{ secrets.APP_KEY }}

0 comments on commit 97af307

Please sign in to comment.