Skip to content

Commit 43c60d6

Browse files
committed
ci: fix
1 parent b874918 commit 43c60d6

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/update-common.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1-
name: Release(openapi)
1+
name: update common defs
22

33
on:
4+
push:
5+
branches:
6+
- master
47
repository_dispatch:
58
types:
69
- ci-update-common
710

11+
permissions:
12+
contents: write
13+
814
jobs:
9-
openapi:
15+
update:
1016
runs-on: ubuntu-24.04
1117
steps:
1218
- uses: actions/checkout@v4
@@ -17,7 +23,7 @@ jobs:
1723
with:
1824
node-version: 22
1925

20-
- run: git pull origin master
26+
- run: git reset --hard origin/master
2127
working-directory: ./pkg/vars/common
2228

2329
- run: yarn install --frozen-lockfile
@@ -30,4 +36,5 @@ jobs:
3036
token: ${{ secrets.PAT }}
3137
title: "feat: update common"
3238
branch: "ci/update-common"
39+
push-to-fork: "trim21-bot/bangumi-server"
3340
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"

0 commit comments

Comments
 (0)