[AAE-7986] Migrate ADF from Travis to Github actions (#8050)

* rebased

* [ci:force]
This commit is contained in:
Marco Carrozzo
2022-12-15 10:27:04 +01:00
committed by GitHub
parent 812352ecdc
commit 70e6d642f3
23 changed files with 933 additions and 53 deletions

View File

@@ -12,6 +12,17 @@
# git commit -m "[affected:project-name1,project-name2] you commit message"
#
# ---------------------------------------------------------------
# Affected projects calculation
# ---------------------------------------------------------------
if [[ $COMMIT_MESSAGE == *"[affected:"* ]]; then
PROJECTS=$(echo "$COMMIT_MESSAGE" | grep -o "\[affected\:[^]]*\]" | sed -e 's#\[affected:##g' | sed -e 's#\]##g')
if [[ $PROJECTS == "*" ]]; then
export NX_CALCULATION_FLAGS="--all"
fi
fi
# ---------------------------------------------------------------
# Forced CI run
# ---------------------------------------------------------------
@@ -21,3 +32,4 @@ if [[ $COMMIT_MESSAGE == *"[ci:force]"* ]]; then
else
export CI_FORCE_RUN=false
fi