Skip to content

Commit 55fece8

Browse files
Github ActionsGithub Actions
authored andcommitted
2 parents 197f14c + fe645cc commit 55fece8

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

.github/workflows/dargon2_library-builder.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ jobs:
5555
git add -f lib/src/blobs/libargon2-darwin.dylib
5656
git config user.name "Github Actions"
5757
git config user.email "[email protected]"
58-
git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
59-
git commit -m "create blobs for mac"
60-
git fetch --unshallow secure-origin main
61-
git pull secure-origin main
62-
git push secure-origin main
63-
58+
if git diff-index --quiet HEAD
59+
then
60+
echo "No Changes. Done"
61+
else
62+
git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
63+
git commit -m "create blobs for mac"
64+
git fetch --unshallow secure-origin main
65+
git pull secure-origin main
66+
git push secure-origin main
67+
fi
6468
windows-build:
6569
runs-on: windows-latest
6670
needs: [linux-build, mac-build]
@@ -84,9 +88,13 @@ jobs:
8488
git add -f lib\src\blobs\libargon2-win.dll
8589
git config user.name "Github Actions"
8690
git config user.email "[email protected]"
87-
git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
88-
git commit -m "create blobs for mac"
89-
git fetch --unshallow secure-origin main
90-
git pull secure-origin main
91-
git push secure-origin main
92-
91+
if git diff-index --quiet HEAD
92+
then
93+
echo "No Changes. Done"
94+
else
95+
git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
96+
git commit -m "create blobs for mac"
97+
git fetch --unshallow secure-origin main
98+
git pull secure-origin main
99+
git push secure-origin main
100+
fi
87.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)