Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 11 additions & 1 deletion .github/workflows/scripts/update-registry-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,22 @@ if [ "$existing_pr_count" -gt 0 ]; then
fi

if [[ -n $(git status --porcelain) ]]; then
echo "Versions have been updated, formatting and pushing changes."
echo "Versions have been updated."

echo "Running fix:format..."

$NPM run fix:format

$GIT checkout -b "$branch"
$GIT commit -a -m "$message"

echo "Running fix:refcache..."

$NPM run fix:refcache
$GIT commit -a -m "Fix refcache"

echo "Pushing the changes..."

$GIT push --set-upstream origin "$branch"

body_file=$(mktemp)
Expand Down
9 changes: 9 additions & 0 deletions scripts/auto-update/version-in-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

GH=gh
GIT=git
NPM=npm

if [[ -n "$GITHUB_ACTIONS" ]]; then
# Ensure that we're starting from a clean state
Expand Down Expand Up @@ -113,6 +114,14 @@ fi

$GIT checkout -b "$branch"
$GIT commit -a -m "$message"

echo "Running fix:refcache..."

$NPM run fix:refcache
$GIT commit -a -m "Fix refcache"

echo "Pushing the changes..."

$GIT push --set-upstream origin "$branch"

echo "Submitting auto-update PR '$message'."
Expand Down