Skip to content

Commit ce8b720

Browse files
committed
Merge branch 'master' into dev/MCDRpost
2 parents 6eea65e + 9ad26cb commit ce8b720

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/tag-dispatch.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Notify Downstream on Tag
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
notify-downstream:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Send Repository Dispatch
13+
uses: peter-evans/repository-dispatch@v4
14+
with:
15+
token: ${{ secrets.DOWNSTREAM_PAT }} # 需要在 secrets 中配置个人访问令牌
16+
repository: xieyuen-org/MCDR-Plugins # 下游仓库的 owner/repo
17+
event-type: upstream-tag-created
18+
client-payload: '{"tag": "${{ github.ref_name }}"}'

0 commit comments

Comments
 (0)