Skip to content

Commit

Permalink
Merge pull request #2 from ggtakec/fix_build_tool
Browse files Browse the repository at this point in the history
Fixed building and packaging script, etc for Ubuntu.
  • Loading branch information
ggtakec authored Apr 25, 2022
2 parents cfc7d20 + 7cc168c commit 2f54497
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ prn_success()
echo "${CBLD}${CGRN}${CREV}[SUCCESS]${CDEF} $*"
echo ""
}
prn_message()
{
echo "${CBLD}${CREV}[MESSAGE]${CDEF} $*"
echo ""
}
prn_fauilure()
{
echo "${CBLD}${CRED}${CREV}[FAILURE]${CDEF} ${CRED}$*${CDEF}"
Expand Down Expand Up @@ -187,8 +192,7 @@ if [ -z "${PKG_EXT}" ]; then
exit 1
fi
if [ -z "${PC_TOKEN}" ]; then
prn_fauilure "\"--packagecloudio-token(-pctoken)\" option is not specified."
exit 1
prn_message "\"--packagecloudio-token(-pctoken)\" option is not specified, so do not publish a package."
fi
if [ -z "${PC_OWNER}" ]; then
PC_OWNER="antpickax"
Expand Down
7 changes: 7 additions & 0 deletions buildutils/debian_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ cd "${SRCTOP}" || exit 1
# Check untracked files
#----------------------------------------------------------
prn_title "Check untracked files"

# [NOTE]
# When using actions/checkout@v1, suppress the following errors.
# "Error: fatal: unsafe repository ('...' is owned by someone else)"
#
git config --global --add safe.directory "${GITHUB_WORKSPACE}"

if [ -n "$(git status --untracked-files=no --porcelain 2>&1)" ]; then
prn_fauilure "Some files are untracked."
exit 1
Expand Down

0 comments on commit 2f54497

Please sign in to comment.