We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a01ee commit e96fe9aCopy full SHA for e96fe9a
.github/workflows/update-catalyst-deps.yml
@@ -69,12 +69,18 @@ jobs:
69
echo "Create PR in ${{ matrix.repo }}"
70
branch_name="chore/update-$REPO_NAME-to-$RELEASE_TAG"
71
default_branch=$(gh api repos/${{ matrix.repo }} --jq '.default_branch')
72
- git checkout -b $branch_name
+ git switch "$branch_name" || git switch --create "$branch_name"
73
74
find . -type f -name "Earthfile" -exec sed -i -E \
75
"s|(IMPORT[[:space:]]+$UPDATED_REPO/(earthly/)?[^:]+:)v[0-9]+\.[0-9]+\.[0-9]+|\1$RELEASE_TAG|" {} +
76
77
git add .
78
+
79
+ if [[ $(git diff --staged) == "" ]]; then
80
+ echo "No changes, everything up to date"
81
+ exit 0
82
+ fi
83
84
git commit -m "chore($REPO_NAME): Update $REPO_NAME to $RELEASE_TAG"
85
git push origin "$branch_name"
86
0 commit comments