Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/bump-api-schema-sha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,16 @@ jobs:
sed -i -e "s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = '$sha';|g" "$filepath"
echo "Updated $filepath"

if git diff --quiet "$filepath"; then
echo "No changes to $filepath, skipping."
exit 0
fi

branch="bot/bump-api-schema-to-${sha:0:8}"
git checkout -b "$branch"
git add "$filepath"
git commit -m "Bump API schema to ${sha:0:8}"
git push --set-upstream origin "$branch"

gh pr create --fill
gh pr merge --squash --auto
gh pr merge --squash --admin
Loading