Browse Source

meta(product-owners.yml) Exit cleanly when there are no changes to make (#49272)

Chad Whitacre 1 year ago
parent
commit
3d9aca4fe3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/react-to-product-owners-yml-changes.sh

+ 1 - 1
bin/react-to-product-owners-yml-changes.sh

@@ -14,6 +14,6 @@ git checkout -b "$branch"
 git add .github/labels.yml
 git add .github/ISSUE_TEMPLATE/bug.yml
 git add .github/ISSUE_TEMPLATE/feature.yml
-git commit -n -m "$message"
+git commit -n -m "$message" || exit 0
 git push --set-upstream origin "$branch"
 gh pr create --title "meta(routing) $message" --body="Syncing with [``product-owners.yml``](https://github.com/getsentry/security-as-code/blob/$sha/rbac/lib/product-owners.yml) ([docs](https://www.notion.so/473791bae5bf43399d46093050b77bf0))."