Skip to content

Commit

Permalink
.github/scripts/makecommit: do not skip commit if onpush.yaml has cha…
Browse files Browse the repository at this point in the history
…nged
  • Loading branch information
asac committed Sep 23, 2024
1 parent 530952f commit 6c3a013
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/scripts/makecommit
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
set -xe

changed=`git diff HEAD .github/configs/release | lsdiff | sed 's/.\///'`
changed2=`git diff HEAD .github/workflows/onpush.yaml | lsdiff | sed 's/.\///'`

if [ -z "$changed" ]; then
if [ -z "$changed" -a -z "$changed2" ]; then
echo "NO changes"
exit 0
fi

echo "Changes: $changed"
echo "Changes: $changed $changed2"

gitdirs=$PWD/.github/git-dirs/
mkdir -p $gitdirs
Expand Down Expand Up @@ -93,6 +94,11 @@ for change in $changed; do
done
done

if [ -n "$changed2" ]; then
echo >> $commitmsg
echo "Changed: $changed2" >> $commitmsg
fi

rm -rf $gitdirs

echo "Commit msg:"
Expand Down

0 comments on commit 6c3a013

Please sign in to comment.