Skip to content

Commit 6f14b06

Browse files
committed
sync upstream
1 parent cd69172 commit 6f14b06

File tree

16 files changed

+198
-134
lines changed

16 files changed

+198
-134
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ updates:
88
directory: "/"
99
schedule:
1010
interval: "daily"
11+
- package-ecosystem: "docker"
12+
directory: "/"
13+
schedule:
14+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/container.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: container
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
- '!dependabot/**'
8+
tags:
9+
- 'v*.*.*'
10+
pull_request:
11+
branches:
12+
- 'master'
13+
- 'main'
14+
- 'gh-pages'
15+
schedule:
16+
- cron: '25 3 */7 * *'
17+
workflow_dispatch:
18+
repository_dispatch:
19+
types: [trigger-deploy]
20+
21+
concurrency:
22+
group: ${{ github.workflow }}-{{ github.head_ref || github.ref }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
container-build:
27+
permissions:
28+
contents: read
29+
packages: write
30+
uses: openstreetmap/github-shared-workflows/.github/workflows/container-build-publish.yml@main

.github/workflows/docker.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/exctarct-en-lang.yml

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ jobs:
1414
update-en-yml:
1515
name: Process changes in English menu items
1616
runs-on: ubuntu-latest
17-
outputs:
18-
has_changes: ${{ steps.check_changes.outputs.has_changes }}
1917
env:
2018
MKDOCS_FILE: "mkdocs.yml"
2119
TARGET_FILE: "./docs/en/en.yml"
2220

2321
steps:
2422
- name: ⬇️ Checkout repository
25-
uses: actions/checkout@v5
23+
uses: actions/checkout@v4
2624

2725
- name: 🧰 Set up yq
2826
uses: mikefarah/yq@v4
@@ -41,29 +39,22 @@ jobs:
4139
4240
rm "$TMP_FILE"
4341
44-
- name: Check if something has been changed in en.yaml
45-
id: check_changes
42+
- name: Commit ${{ env.TARGET_FILE }} if changed
4643
run: |
47-
if git diff-index --quiet HEAD -- "${TARGET_FILE}"; then
48-
echo "No changes detected in ${TARGET_FILE}"
49-
echo "has_changes=false" >> $GITHUB_OUTPUT
50-
else
51-
echo "Changes detected in ${TARGET_FILE}"
52-
echo "Git diff output:"
53-
git diff HEAD -- "${TARGET_FILE}" || true
54-
echo "has_changes=true" >> $GITHUB_OUTPUT
55-
fi
44+
set -euo pipefail
5645
57-
- name: Commit changes
58-
if: steps.check_changes.outputs.has_changes == 'true'
59-
run: |
6046
git config user.name "github-actions[bot]"
6147
git config user.email "github-actions[bot]@users.noreply.github.com"
62-
git add "${TARGET_FILE}"
63-
git commit -m "Changes in ${TARGET_FILE}"
64-
git push
6548
66-
- name: No changes detected
67-
if: steps.check_changes.outputs.has_changes == 'false'
68-
run: |
69-
echo "No changes to commit."
49+
# Stage first, then check what's actually pending
50+
[ -f "$TARGET_FILE" ] && git add -- "$TARGET_FILE" || true
51+
52+
# Nothing staged? clean exit.
53+
if [ -z "$(git status --porcelain -- "$TARGET_FILE")" ]; then
54+
echo "No changes to commit for $TARGET_FILE"
55+
exit 0
56+
fi
57+
58+
git commit -m "Changes in $TARGET_FILE"
59+
60+
git push origin "$BRANCH"

.github/workflows/test-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
test-pr:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v5
13-
- uses: actions/setup-python@v5
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v6
1414
with:
1515
python-version: 3.x
1616
- run: pip install -r requirements.txt

.github/workflows/update-languages-in-mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: ⬇️ Checkout repository
20-
uses: actions/checkout@v5
20+
uses: actions/checkout@v4
2121

2222
- name: 🧰 Set up yq
2323
uses: mikefarah/yq@v4
@@ -146,7 +146,7 @@ jobs:
146146
147147
- name: 🚀 Trigger deploy workflow
148148
if: steps.check_changes.outputs.has_changes == 'true'
149-
uses: peter-evans/repository-dispatch@v3
149+
uses: peter-evans/repository-dispatch@v4
150150
with:
151151
event-type: trigger-deploy
152152

docs/assets/using-tiles/build.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { colorful } from "@versatiles/style";
2+
import { writeFileSync } from "node:fs";
3+
4+
const style = colorful({
5+
baseUrl: "https://example.com",
6+
glyphs: "/fonts/{fontstack}/{range}.pbf",
7+
sprite: "/sprites/basics/sprites",
8+
tiles: ["https://vector.openstreetmap.org/shortbread_v1/{z}/{x}/{y}.mvt"]
9+
});
10+
writeFileSync("release/style.json", JSON.stringify(style));

docs/en/serving-tiles/updating-as-people-edit-pyosmium.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ sudo -u _renderd \
5050
~/data/greater-london-latest.osm.pbf
5151
```
5252

53-
The data to load was obtained from a page such as [this one](http://download.geofabrik.de/europe/great-britain/england/greater-london.html){: target=_blank}, which says something like "... and contains all OSM data up to 2023-07-02T20:21:43Z". We'll use that date when setting up replication below:
53+
The data to load was obtained from a page such as [this one](http://download.geofabrik.de/europe/united-kingdom/england/greater-london.html){: target=_blank}, which says something like "... and contains all OSM data up to 2023-07-02T20:21:43Z". We'll use that date when setting up replication below:
5454

5555
```sh
5656
sudo mkdir /var/cache/renderd/pyosmium

docs/en/serving-tiles/using-a-docker-container.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ docker volume create osm-data
3131

3232
And install it and import the data:
3333

34-
```sh
34+
```sh
3535
time \
3636
docker run \
37-
-v /home/renderaccount/zambia-latest.osm.pbf:/region.osm.pbf \
37+
-v /home/renderaccount/zambia-latest.osm.pbf:/data/region.osm.pbf \
3838
-v osm-data:/data/database/ \
3939
overv/openstreetmap-tile-server import
4040
```

0 commit comments

Comments
 (0)