Skip to content

Commit

Permalink
[resotoshell][chore] only open PR on changes (#1669)
Browse files Browse the repository at this point in the history
* [resotoshell][chore] only open PR on changes

* remove heads
  • Loading branch information
lloesche committed Jun 16, 2023
1 parent b14682a commit b4e121a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/check_pr_resotoshell.yml
Expand Up @@ -94,9 +94,14 @@ jobs:
cd homebrew-tap
TAG_NAME=${{ github.ref }}
TAG_NAME=${TAG_NAME#refs/tags/}
TAG_NAME=${TAG_NAME#refs/heads/}
BRANCH_NAME="ci/bump-resotoshell-$TAG_NAME"
git checkout -b "$BRANCH_NAME"
make resotoshell
git commit -am "Bump resotoshell to $TAG_NAME"
git push origin "$BRANCH_NAME"
gh pr create --title "Bump resotoshell to $TAG_NAME" --body "" --base main --head "$BRANCH_NAME"
if ! git diff --quiet; then
git commit -am "Bump resotoshell to $TAG_NAME"
git push origin "$BRANCH_NAME"
gh pr create --title "Bump resotoshell to $TAG_NAME" --body "" --base main --head "$BRANCH_NAME"
else
echo "No changes to commit"
fi

0 comments on commit b4e121a

Please sign in to comment.