From c867ea4c0cd982599d1151e7df73dbdde5d4df4b Mon Sep 17 00:00:00 2001 From: Mikhail Dzianishchyts Date: Mon, 25 Nov 2024 16:02:30 +0300 Subject: [PATCH] Prevent Nanomaps Render failure if no changes (#1669) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Что этот PR делает Скипает джоб, если нет изменений, вместо фейла. Наверное, поможет и ничего не сломаю. ``` pull request create failed: GraphQL: No commits between master and nanomap-render (createPullRequest) ``` ![image](https://github.com/user-attachments/assets/2d65b1fb-9d17-4c1f-badf-123e93500fc3) --- .github/workflows/render_nanomaps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/render_nanomaps.yml b/.github/workflows/render_nanomaps.yml index b3c5fe188bc6..711638187196 100644 --- a/.github/workflows/render_nanomaps.yml +++ b/.github/workflows/render_nanomaps.yml @@ -43,7 +43,7 @@ jobs: git pull origin master git commit -m "NanoMap Auto-Update (`date`)" -a || true git push -f -u origin nanomap-render - result=$(gh pr create -t "Automatic NanoMap Update" -b "This pull request updates the server NanoMaps. Please review the diff images before merging." -l "NanoMaps,:scroll: CL не требуется" -H "nanomap-render" -B "master") + result=$(gh pr create -t "Automatic NanoMap Update" -b "This pull request updates the server NanoMaps. Please review the diff images before merging." -l "NanoMaps,:scroll: CL не требуется" -H "nanomap-render" -B "master") || true if echo "$result" | grep -q "No commits between master and nanomap-render" echo "No NanoMaps update required, skipping." exit 78