45 lines (40 loc) · 1.15 KB
/
Requests-Mod-Pack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Requests ModPack
on:
workflow_dispatch:
inputs:
curseForgeID:
description: "CurseForge 模組包 ID"
required: true
default: "494989" #Atr1
gameVersion:
description: "遊戲版本"
required: true
default: "1.17"
ref:
description: "執行分支"
required: true
default: "Original-1.17"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.ref }}
- name: "下載模組的語系檔案"
uses: RPMTW/Translation-Scripts@1.1.4
with:
action: "download_modpack"
args: ${{ github.event.inputs.curseForgeID }}
gameVersion: ${{ github.event.inputs.gameVersion }}
- name: "推送變更"
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: ${{ github.event.inputs.ref }}
commit-message: "新增模組包的語系檔案"
force-add: true
files: ./
name: RPMTW Bot
email: rpmtw666@gmail.com
rebase: true