Skip to content

Commit 842719e

Browse files
committed
Fetch master
1 parent f17869c commit 842719e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
with:
1212
fetch-depth: 2
1313

14+
- name: Fetch master branch
15+
run: git fetch origin master
16+
1417
- name: Check if topographic-v2.json changed
1518
id: check_diff
1619
run: |
17-
if git diff --name-only origin/master origin/${{ github.head_ref }} | grep -F "config/tileset/topographic-v2.json"; then
20+
if git diff --name-only origin/master HEAD | grep -F "config/tileset/topographic-v2.json"; then
1821
echo "File changed"
1922
echo "changed=true" >> $GITHUB_OUTPUT
2023
else

0 commit comments

Comments
 (0)