diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-02-03 15:34:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 15:34:21 -0800 |
commit | d29dbb122d8b8ee22b2d826af4d234a2c2cf7ba2 (patch) | |
tree | 1e279a66c2428b5ed60a8947b6f6ba38015a0aed | |
parent | Fix typo (GH-23019) (diff) | |
download | cpython-d29dbb122d8b8ee22b2d826af4d234a2c2cf7ba2.tar.gz cpython-d29dbb122d8b8ee22b2d826af4d234a2c2cf7ba2.tar.bz2 cpython-d29dbb122d8b8ee22b2d826af4d234a2c2cf7ba2.zip |
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>
(cherry picked from commit 4ac923f2756f835f512339ee181348cc535ab07f)
Co-authored-by: Filipe Laíns <lains@riseup.net>
-rw-r--r-- | .github/workflows/build.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7426ac8c54..669c541dd4f 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 |