Skip to content

Commit e96fe9a

Browse files
fix: Fix notify action
Signed-off-by: Evgeniy Dikevich <[email protected]>
1 parent 48a01ee commit e96fe9a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/update-catalyst-deps.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,18 @@ jobs:
6969
echo "Create PR in ${{ matrix.repo }}"
7070
branch_name="chore/update-$REPO_NAME-to-$RELEASE_TAG"
7171
default_branch=$(gh api repos/${{ matrix.repo }} --jq '.default_branch')
72-
git checkout -b $branch_name
72+
git switch "$branch_name" || git switch --create "$branch_name"
7373
7474
find . -type f -name "Earthfile" -exec sed -i -E \
7575
"s|(IMPORT[[:space:]]+$UPDATED_REPO/(earthly/)?[^:]+:)v[0-9]+\.[0-9]+\.[0-9]+|\1$RELEASE_TAG|" {} +
7676
7777
git add .
78+
79+
if [[ $(git diff --staged) == "" ]]; then
80+
echo "No changes, everything up to date"
81+
exit 0
82+
fi
83+
7884
git commit -m "chore($REPO_NAME): Update $REPO_NAME to $RELEASE_TAG"
7985
git push origin "$branch_name"
8086

0 commit comments

Comments
 (0)