From 58b006593ddac3a8517a7177b57f3b7cbddaaa32 Mon Sep 17 00:00:00 2001 From: Sergei Dutenhefner <74149595+sergej-singer@users.noreply.github.com> Date: Fri, 13 Dec 2024 23:56:50 +0100 Subject: [PATCH] Create mapbuilder.yml --- .github/workflows/mapbuilder.yml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/mapbuilder.yml diff --git a/.github/workflows/mapbuilder.yml b/.github/workflows/mapbuilder.yml new file mode 100644 index 00000000..ee159bad --- /dev/null +++ b/.github/workflows/mapbuilder.yml @@ -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 }} \ No newline at end of file