mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-23 23:53:21 +08:00
Update GitHub Actions to use 'download-file' over 'wget'
This commit is contained in:
parent
8ecb890fbe
commit
386ad9aa66
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -38,7 +38,10 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-
|
||||
- name: Download Handbook
|
||||
run: wget https://api.grasscutter.io/static/handbook.html -O src/main/resources/handbook.html
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/handbook.html
|
||||
target: src/main/resources/
|
||||
- name: Run Gradle
|
||||
run: ./gradlew && ./gradlew jar
|
||||
- name: Upload build
|
||||
|
30
.github/workflows/handbook.yml
vendored
30
.github/workflows/handbook.yml
vendored
@ -43,20 +43,30 @@ jobs:
|
||||
run: npm run lint
|
||||
|
||||
- name: Download Avatar Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/avatars.csv -O data/avatars.csv
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/avatars.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Command Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/commands.json -O data/commands.json
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/commands.json
|
||||
target: src/handbook/data/
|
||||
- name: Download Entity Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/entities.csv -O data/entities.csv
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/entities.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Item Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/items.csv -O data/items.csv
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/items.csv
|
||||
target: src/handbook/data/
|
||||
- name: Download Scene Data
|
||||
working-directory: src/handbook
|
||||
run: wget https://api.grasscutter.io/static/scenes.csv -O data/scenes.csv
|
||||
uses: suisei-cn/actions-download-file@v1.4.0
|
||||
with:
|
||||
url: https://api.grasscutter.io/static/scenes.csv
|
||||
target: src/handbook/data/
|
||||
|
||||
- run: git config --global user.name "github-actions"
|
||||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
Loading…
Reference in New Issue
Block a user