chore(main): release 0.9.5 #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Merge | |
on: | |
pull_request: | |
types: | |
- labeled | |
- unlabeled | |
- synchronize | |
- opened | |
- edited | |
- ready_for_review | |
- reopened | |
- unlocked | |
pull_request_review: | |
types: | |
- submitted | |
status: { } | |
# 定义作业 jobs,包括检查 PR 合规性和自动合并发布版本的 PR 到 master 分支两个步骤 | |
jobs: | |
# 合并发布版本的 PR 到 master 分支 | |
auto-merge: | |
runs-on: ubuntu-latest # 运行环境为最新版 ubuntu | |
# 步骤,使用 pascalgn/automerge-action 动作实现自动合并发布版本的 PR 到 master 分支,并定义了环境变量 GITHUB_TOKEN 和 MERGE_FILTER_AUTHOR 条件过滤器。 | |
steps: | |
- name: Automerge # 步骤名称为:Automerge | |
uses: pascalgn/automerge-action@v0.15.6 # 使用 pascalgn/automerge-action 动作进行自动合并 PR 操作 | |
env: | |
GITHUB_TOKEN: '${{ secrets.RELEASE_TOKEN }}' # 设置 GitHub Token 密钥,从 secrets 中获取 | |
MERGE_LABELS: '' | |
MERGE_FILTER_AUTHOR: 'LingASDJ' # 只有作者是 Ling 的 PR 才会被自动合并。 |