Skip to content

Commit

Permalink
CI: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
anishshobithps committed Jan 11, 2025
1 parent 5b682e7 commit 841f510
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ jobs:
run: |
CHANGED=0
git fetch origin main
if git diff --name-only HEAD^ HEAD | grep -q "^\.docker/"; then
CHANGED=1
if [ "$(git rev-list --count HEAD)" -gt 1 ]; then
# Ensure that there is more than 1 commit in the history
if git diff --name-only HEAD^ HEAD | grep -q "^\.docker/"; then
CHANGED=1
fi
else
# If there's no previous commit, assume no changes
CHANGED=0
fi
echo "changed=${CHANGED}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 841f510

Please sign in to comment.