Skip to content

Commit d6cc14c

Browse files
authored
chore: Require acctest label for prs (#3540)
1 parent a3638e8 commit d6cc14c

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/acceptance-tests.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,17 @@ jobs:
5959
test="true"
6060
environment="acctest-dotcom"
6161
echo "::notice::Running in ${GITHUB_EVENT_NAME} context, proceeding with tests."
62+
elif [[ "${INPUT_ACCTEST_LABEL_SET}" == "false" ]]; then
63+
echo "::notice::Skipping tests acctest label is not set."
6264
else
6365
if [[ "${INPUT_GITHUB_HEAD_REPO}" == "${INPUT_GITHUB_BASE_REPO}" ]]; then
6466
fork="false"
6567
test="true"
6668
environment="acctest-dotcom"
6769
echo "::notice::Running in ${GITHUB_EVENT_NAME} context from the base repository, proceeding with tests."
6870
else
69-
if [[ "${INPUT_ACCTEST_LABEL_SET}" == "true" ]]; then
70-
test="true"
71-
echo "::warning::Running in ${GITHUB_EVENT_NAME} context from a fork ${repository}, proceeding with tests as acctest label is set."
72-
else
73-
echo "::warning::Running in ${GITHUB_EVENT_NAME} context from a fork ${repository}, skipping tests as acctest label is not set."
74-
fi
71+
test="true"
72+
echo "::warning::Running in ${GITHUB_EVENT_NAME} context from a fork ${repository}, proceeding with tests."
7573
fi
7674
fi
7775

0 commit comments

Comments
 (0)