chore: Fix lint issues (#553)

* ci(Lint): Temporarily disable branch contraint

* chore(erpnext-nginx): Fix linting

* chore: Fix linting issues

* ci(Lint): Add -x flag

* ci(Lint): Fix push trigger

* chore: Fix linting and formatting

* fix: Gunicorn server start

* chore(frappe-worker): Fix linting

* chore(frappe-nginx): Fix linting

* fix(erpnext-nginx): App installation

* fix(erpnext-nginx): App installation

* refactor(frappe-nginx): Use `find` instead of `ls`
This commit is contained in:
Lev
2021-11-09 13:05:29 +03:00
committed by GitHub
parent 358293afc9
commit f74f730b5e
10 changed files with 124 additions and 116 deletions

View File

@@ -4,7 +4,7 @@ set -e
set -x
get_tag() {
tags=$(git ls-remote --refs --tags --sort='v:refname' https://github.com/$1 "v$2.*")
tags=$(git ls-remote --refs --tags --sort='v:refname' "https://github.com/$1" "v$2.*")
tag=$(echo "$tags" | tail -n1 | sed 's/.*\///')
echo "$tag"
}
@@ -12,11 +12,9 @@ get_tag() {
FRAPPE_VERSION=$(get_tag frappe/frappe "$VERSION")
ERPNEXT_VERSION=$(get_tag frappe/erpnext "$VERSION")
# shellcheck disable=SC2086
echo "FRAPPE_VERSION=$FRAPPE_VERSION" >>$GITHUB_ENV
# shellcheck disable=SC2086
echo "ERPNEXT_VERSION=$ERPNEXT_VERSION" >>$GITHUB_ENV
# shellcheck disable=SC2086
echo "GIT_BRANCH=version-$VERSION" >>$GITHUB_ENV
# shellcheck disable=SC2086
echo "VERSION=$VERSION" >>$GITHUB_ENV
cat <<EOL >>"$GITHUB_ENV"
FRAPPE_VERSION=$FRAPPE_VERSION
ERPNEXT_VERSION=$ERPNEXT_VERSION
GIT_BRANCH=version-$VERSION
VERSION=$VERSION
EOL