Skip to content

Update layers

Update layers #1

Workflow file for this run

name: Update layers with data from wasp-data
on:
workflow_dispatch:
jobs:
update-layers:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 1
sparse-checkout: |
# skip downloading data:
!map/
!heightmap/
!collision/
- name: Checkout Wasp-Data
uses: actions/checkout@v5
with:
repository: 'WaspScripts/wasp-data'
ref: 'main'
fetch-depth: 1
path: /tmp/wasp-data
sparse-checkout: |
map/map.zip
map/heightmap.zip
map/collision.zip
- name: Reset target directories
run: |
rm -rf ./map ./heightmap ./collision
mkdir -p ./map ./heightmap ./collision
- name: Unzip files
run: |
unzip -o /tmp/wasp-data/map/map.zip -d ./map
unzip -o /tmp/wasp-data/map/heightmap.zip -d ./heightmap
unzip -o /tmp/wasp-data/map/collision.zip -d ./collision
- name: Commit and push changes
run: |
git config --global user.name "Wasp Bot"
git config --global user.email "[email protected]"
git add ./map ./heightmap ./collision
git commit -m "Update layers from wasp-data" || echo "No changes to commit"
git push