mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 07:02:54 +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: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
- name: Download Handbook
|
- 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
|
- name: Run Gradle
|
||||||
run: ./gradlew && ./gradlew jar
|
run: ./gradlew && ./gradlew jar
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
|
30
.github/workflows/handbook.yml
vendored
30
.github/workflows/handbook.yml
vendored
@ -43,20 +43,30 @@ jobs:
|
|||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
- name: Download Avatar Data
|
- name: Download Avatar Data
|
||||||
working-directory: src/handbook
|
uses: suisei-cn/actions-download-file@v1.4.0
|
||||||
run: wget https://api.grasscutter.io/static/avatars.csv -O data/avatars.csv
|
with:
|
||||||
|
url: https://api.grasscutter.io/static/avatars.csv
|
||||||
|
target: src/handbook/data/
|
||||||
- name: Download Command Data
|
- name: Download Command Data
|
||||||
working-directory: src/handbook
|
uses: suisei-cn/actions-download-file@v1.4.0
|
||||||
run: wget https://api.grasscutter.io/static/commands.json -O data/commands.json
|
with:
|
||||||
|
url: https://api.grasscutter.io/static/commands.json
|
||||||
|
target: src/handbook/data/
|
||||||
- name: Download Entity Data
|
- name: Download Entity Data
|
||||||
working-directory: src/handbook
|
uses: suisei-cn/actions-download-file@v1.4.0
|
||||||
run: wget https://api.grasscutter.io/static/entities.csv -O data/entities.csv
|
with:
|
||||||
|
url: https://api.grasscutter.io/static/entities.csv
|
||||||
|
target: src/handbook/data/
|
||||||
- name: Download Item Data
|
- name: Download Item Data
|
||||||
working-directory: src/handbook
|
uses: suisei-cn/actions-download-file@v1.4.0
|
||||||
run: wget https://api.grasscutter.io/static/items.csv -O data/items.csv
|
with:
|
||||||
|
url: https://api.grasscutter.io/static/items.csv
|
||||||
|
target: src/handbook/data/
|
||||||
- name: Download Scene Data
|
- name: Download Scene Data
|
||||||
working-directory: src/handbook
|
uses: suisei-cn/actions-download-file@v1.4.0
|
||||||
run: wget https://api.grasscutter.io/static/scenes.csv -O data/scenes.csv
|
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.name "github-actions"
|
||||||
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
- run: git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user