Skip to content

Commit 0dcdc90

Browse files
authored
test a change-based push
1 parent b8a0f5b commit 0dcdc90

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/dargon2_library-builder.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ jobs:
2525
git add -f lib/src/blobs/libargon2-linux.so
2626
git config user.name "Github Actions"
2727
git config user.email "[email protected]"
28-
git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
29-
git fetch --unshallow secure-origin main
30-
git commit -m "create blobs for linux"
31-
git push -f secure-origin main
32-
28+
if git diff-index --quiet HEAD
29+
then
30+
echo "No Changes. Done"
31+
else
32+
git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
33+
git fetch --unshallow secure-origin main
34+
git commit -m "create blobs for linux"
35+
git push -f secure-origin main
36+
fi
3337
mac-build:
3438
runs-on: macos-latest
3539
needs: linux-build

0 commit comments

Comments
 (0)