-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08075fa
commit a17bc5b
Showing
6 changed files
with
36 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,12 +35,29 @@ fetch_versions "api" true "${api_versions[@]}" | transform_to_versions > "$recom | |
git config user.name 'CubeEngine Sponge Updater' | ||
git config user.email '[email protected]' | ||
|
||
git add "$latest_versions_file" "$recommended_versions_file" | ||
commit() { | ||
local file="${1?no file}" | ||
local name="${2?no name}" | ||
git add "$file" | ||
git commit -m "$name updated" | ||
} | ||
|
||
updated=false | ||
if commit "$latest_versions_file" "Latest versions" | ||
then | ||
updated=true | ||
fi | ||
if commit "$recommended_versions_file" "Recommended versions" | ||
then | ||
updated=true | ||
fi | ||
|
||
if git commit -m 'My hands are typing words....' | ||
if [ "$updated" = "true" ] | ||
then | ||
git push | ||
exit 0 | ||
else | ||
echo "No new versions!" | ||
exit 1 | ||
fi | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.