Use better flags and conditionals in CI itself
This commit is contained in:
parent
847c9950d7
commit
f67b9a01fe
5 changed files with 22 additions and 8 deletions
|
@ -9,7 +9,7 @@ pushd ${SOURCE_DIR}
|
|||
cp -a yarn.lock /tmp/yarn.lock
|
||||
|
||||
# modify changelog to unstable configuration if IS_UNSTABLE
|
||||
if [[ ${GIT_BRANCH} == 'refs/heads/package' ]]; then
|
||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||
pushd fedora/
|
||||
# get the last PR ID
|
||||
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
||||
|
|
|
@ -9,7 +9,7 @@ pushd ${SOURCE_DIR}
|
|||
cp -a yarn.lock /tmp/yarn.lock
|
||||
|
||||
# modify changelog to unstable configuration if IS_UNSTABLE
|
||||
if [[ ${GIT_BRANCH} == 'refs/heads/package' ]]; then
|
||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||
pushd debian/
|
||||
# get the last PR ID
|
||||
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
||||
|
|
|
@ -9,7 +9,7 @@ pushd ${SOURCE_DIR}
|
|||
cp -a yarn.lock /tmp/yarn.lock
|
||||
|
||||
# modify changelog to unstable configuration if IS_UNSTABLE
|
||||
if [[ ${GIT_BRANCH} == 'refs/heads/package' ]]; then
|
||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||
pushd fedora/
|
||||
# get the last PR ID
|
||||
PR_ID=$( git log --grep 'Merge pull request' --oneline --single-worktree --first-parent | head -1 | grep --color=none -Eo '#[0-9]+' | tr -d '#' )
|
||||
|
|
|
@ -7,7 +7,7 @@ set -o xtrace
|
|||
pushd ${SOURCE_DIR}
|
||||
|
||||
# get version
|
||||
if [[ ${GIT_BRANCH} == 'refs/heads/package' ]]; then
|
||||
if [[ ${IS_UNSTABLE} == 'yes' ]]; then
|
||||
version="${BUILD_ID}"
|
||||
else
|
||||
version="$( grep "version:" ./build.yaml | sed -E 's/version: "([0-9\.]+.*)"/\1/' )"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue