generated from bitwarden/template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-11376] Improve automated commit message (#29)
- Loading branch information
1 parent
3ac3386
commit d0b9b3c
Showing
5 changed files
with
260 additions
and
173 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 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Check if the commit message file argument is provided | ||
if [ "$#" -ne 1 ]; then | ||
echo "Usage: $0 <commit_message_file_path>" | ||
exit 1 | ||
fi | ||
|
||
COMMIT_MSG_FILE="$1" | ||
|
||
echo "::group::Building metascoop executable" | ||
cd metascoop | ||
go build -o metascoop | ||
echo "::endgroup::" | ||
|
||
echo "::group::Running metascoop" | ||
./metascoop -rp=../repos.yaml -rd=../fdroid/repo -pat="$GH_ACCESS_TOKEN" -cm="$COMMIT_MSG_FILE" | ||
EXIT_CODE=$? | ||
cd .. | ||
echo "::endgroup::" | ||
|
||
echo "Metascoop had an exit code of $EXIT_CODE" | ||
|
||
if [ $EXIT_CODE -eq 2 ]; then | ||
echo "There were no significant changes" | ||
exit 0 | ||
elif [ $EXIT_CODE -eq 0 ]; then | ||
echo "Changes detected" | ||
exit 0 | ||
else | ||
echo "This is an unexpected error" | ||
exit 1 | ||
fi |
Oops, something went wrong.