Skip to content

Commit

Permalink
chore: Fix draft-release action (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinja2 authored Oct 15, 2024
1 parent f33fe43 commit f466028
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/draft-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ jobs:
run: |
echo "NEEDS_PR=1" >> "$GITHUB_OUTPUT"
git fetch origin
set +e # change shell behavior from github's default
# Directly check if the branch exists and has the same changes in the remote repository
git ls-remote --exit-code --heads origin ${BRANCH_NAME} > /dev/null 2>&1
if [ $? -eq 0 ]; then
set -e # revert to default behavior
if git diff --no-ext-diff --quiet origin/${BRANCH_NAME} -- charts; then
echo "NEEDS_PR=0" >> "$GITHUB_OUTPUT"
fi
Expand Down

0 comments on commit f466028

Please sign in to comment.