mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-19 01:55:51 +08:00

relates to ##720 Cleaned up and updated the job description file a bit. Instead of attempting to commit every single time, we check if the DIRECTORY file actually has changes first.
11 lines
295 B
Bash
Executable File
11 lines
295 B
Bash
Executable File
if ! git diff --quiet DIRECTORY.md; then
|
|
echo Changes found, attempting to commit and push...
|
|
git add DIRECTORY.md
|
|
git commit -am "Auto-update DIRECTORY.md" || true
|
|
git push --force origin HEAD:$GITHUB_REF || true
|
|
echo ... done.
|
|
else
|
|
echo No changes found, exiting.
|
|
fi
|
|
|