summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorFilipe Laíns <lains@riseup.net>2020-12-30 14:53:58 (GMT)
committerGitHub <noreply@github.com>2020-12-30 14:53:58 (GMT)
commit4ac923f2756f835f512339ee181348cc535ab07f (patch)
tree9e5668d9c0b281eab67ccf0061799672f06b545f /.github
parent277ce3060becc120f1c877346562bd6880f4be71 (diff)
downloadcpython-4ac923f2756f835f512339ee181348cc535ab07f.zip
cpython-4ac923f2756f835f512339ee181348cc535ab07f.tar.gz
cpython-4ac923f2756f835f512339ee181348cc535ab07f.tar.bz2
bpo-42773: fix tests not being run on pushes (GH-24004)
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>
Diffstat (limited to '.github')
-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 1b865a1..6f05310 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,7 +28,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