Skip to content

Commit

Permalink
Create mapbuilder.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergej-singer committed Dec 13, 2024
1 parent 2aa1e84 commit 58b0065
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/mapbuilder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: mapbuilder
run-name: Building maps for commit ${{ github.sha }} by ${{ github.actor }}
on:
push:
branches:
- "*"
- "*/**"
- "!main"
paths:
- mapdata
permissions: write-all
jobs:
build-maps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Restore cached sources
uses: actions/cache/restore@v4
with:
path: .cache
key: sources
- name: Run mapbuilder
uses: vatger-nav/mapbuilder@main
with:
target-path: './EDGG'
source-path: 'mapdata'
- name: Store cached sources
uses: actions/cache/save@v4
with:
path: .cache
key: sources

- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "[AUTO] mapbuilder ${{ github.sha }}" --allow-empty)
- name: push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit 58b0065

Please sign in to comment.