Skip to content

Commit

Permalink
Prevent Nanomaps Render failure if no changes (#1669)
Browse files Browse the repository at this point in the history
## Что этот 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)
  • Loading branch information
m-dzianishchyts authored Nov 25, 2024
1 parent 07f7879 commit c867ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/render_nanomaps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c867ea4

Please sign in to comment.