Skip to content

Commit

Permalink
fix:GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
empty-233 committed Dec 3, 2023
1 parent 8295a06 commit 56bc836
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/Update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Checkout release
uses: actions/checkout@v4
with:
ref: release
path: data

- name: pnpm install
run: pnpm install
Expand All @@ -54,12 +60,6 @@ jobs:
# file_pattern: 'data/'
# skip_dirty_check: true

- name: Checkout release
uses: actions/checkout@v4
with:
ref: release
path: data

- name: Git push assets to release branch
run: |
rm -r data/bangumi-data
Expand All @@ -68,7 +68,6 @@ jobs:
cp ./data.d.ts ./data
cd data
sed -i 's#./original-data/bangumi-data/data.d.ts#./bangumi-data/data.d.ts#' ./data.d.ts
git checkout -b release
git add .
git commit -m "Auto Update Data"
git push -f

0 comments on commit 56bc836

Please sign in to comment.