mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
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 4ac923f275
)
Co-authored-by: Filipe Laíns <lains@riseup.net>
This commit is contained in:
parent
2603d77a6b
commit
0898dcb3a0
1 changed files with 1 additions and 1 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -28,7 +28,7 @@ jobs:
|
||||||
- name: Check for source changes
|
- name: Check for source changes
|
||||||
id: check
|
id: check
|
||||||
run: |
|
run: |
|
||||||
if [ -z "GITHUB_BASE_REF" ]; then
|
if [ -z "$GITHUB_BASE_REF" ]; then
|
||||||
echo '::set-output name=run_tests::true'
|
echo '::set-output name=run_tests::true'
|
||||||
else
|
else
|
||||||
git fetch origin $GITHUB_BASE_REF --depth=1
|
git fetch origin $GITHUB_BASE_REF --depth=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue