mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-06-26 07:45:37 +00:00
Fix AZP CI nox script.
This commit is contained in:
parent
97fa83ee03
commit
2778fb6336
@ -60,8 +60,8 @@ if [ -n "${COMPLETE:-}" ]; then
|
|||||||
elif [[ "${COMMIT_MESSAGE}" =~ ci_complete ]]; then
|
elif [[ "${COMMIT_MESSAGE}" =~ ci_complete ]]; then
|
||||||
# disable change detection triggered by having 'ci_complete' in the latest commit message
|
# disable change detection triggered by having 'ci_complete' in the latest commit message
|
||||||
export ANTSIBULL_CHANGE_DETECTION=""
|
export ANTSIBULL_CHANGE_DETECTION=""
|
||||||
else
|
if [ "${IS_PULL_REQUEST:-}" == "true" ]; then
|
||||||
# enable change detection (default behavior)
|
# enable change detection for PRs (default behavior)
|
||||||
export ANTSIBULL_CHANGE_DETECTION="true"
|
export ANTSIBULL_CHANGE_DETECTION="true"
|
||||||
export ANTSIBULL_BASE_BRANCH="${SYSTEM_PULLREQUEST_TARGETBRANCH}"
|
export ANTSIBULL_BASE_BRANCH="${SYSTEM_PULLREQUEST_TARGETBRANCH}"
|
||||||
# Create a branch for the current HEAD, which happens to be a merge commit
|
# Create a branch for the current HEAD, which happens to be a merge commit
|
||||||
@ -70,6 +70,9 @@ else
|
|||||||
git branch "${SYSTEM_PULLREQUEST_TARGETBRANCH}" --track "origin/${SYSTEM_PULLREQUEST_TARGETBRANCH}"
|
git branch "${SYSTEM_PULLREQUEST_TARGETBRANCH}" --track "origin/${SYSTEM_PULLREQUEST_TARGETBRANCH}"
|
||||||
# Show branches
|
# Show branches
|
||||||
git branch -vv
|
git branch -vv
|
||||||
|
else
|
||||||
|
# disable change detection for pushes and scheduled runs
|
||||||
|
export ANTSIBULL_CHANGE_DETECTION=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${COVERAGE:-}" == "--coverage" ]]; then
|
if [[ "${COVERAGE:-}" == "--coverage" ]]; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user