summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-06 10:02:47 -0700
committerGitHub <noreply@github.com>2022-05-06 13:02:47 -0400
commit5adef3dd28854da4589be6937d3fcdc5c207276b (patch)
tree9a585ef84e869b6e0028098fb1fb92a9d6b12205
parent387f93c156288c170ff0016a75af06e109d48ee1 (diff)
downloadcpython-git-5adef3dd28854da4589be6937d3fcdc5c207276b.tar.gz
bpo-42773: fix tests not being run on pushes (GH-24004) (GH-92341)
There was a typo, we were checking if the "GITHUB_BASE_REF" string literal was empty instead of the $GITHUB_BASE_REF value. When $GITHUB_BASE_REF is empty, the action that triggered the run was not a pull request, so we always run the full test suite. Signed-off-by: Filipe LaĆ­ns <lains@riseup.net> (cherry picked from commit 4ac923f2756f835f512339ee181348cc535ab07f)
-rw-r--r--.github/workflows/build.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 530eba70b5..f05da0938e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -21,7 +21,7 @@ jobs:
- name: Check for source changes
id: check
run: |
- if [ -z "GITHUB_BASE_REF" ]; then
+ if [ -z "$GITHUB_BASE_REF" ]; then
echo '::set-output name=run_tests::true'
else
git fetch origin $GITHUB_BASE_REF --depth=1