Skip to content

Commit a0595da

Browse files
committed
ci: 自动发备份
1 parent 070b9bb commit a0595da

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/ffxiv_download.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: FFXIV Data Downloader
22

33
on:
44
workflow_dispatch:
5-
6-
push:
7-
tags:
8-
- "v*"
5+
schedule:
6+
- cron: '0 0 * * *' # 每天 UTC 0 点执行(北京时间早上 8 点)
97

108
jobs:
119
download_files:
@@ -32,21 +30,19 @@ jobs:
3230
with:
3331
output-path: exd-data
3432
regex: '^sqpack\/ffxiv\/0a0000\..+$'
35-
verbose: true
3633

37-
- name: Create GitHub Release if updated and triggered by tag
38-
if: |
39-
startsWith(github.ref, 'refs/tags/') &&
40-
steps.download.outputs.updated == 'true'
34+
- name: Create GitHub Release if updated
35+
if: steps.download.outputs.updated == 'true'
4136
uses: softprops/action-gh-release@v2
4237
env:
4338
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4439
with:
45-
tag_name: ${{ github.ref }}
40+
tag_name: ${{ steps.download.outputs.version }}
4641
name: 国际服原文件备份 ${{ steps.download.outputs.version }}
4742
files: exd-data/**
4843
draft: false
4944
prerelease: false
45+
generate_release_notes: true
5046

5147
- name: Upload Downloaded Artifact
5248
uses: actions/upload-artifact@v4

ffxivgame.ver

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)