diff options
author | Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> | 2023-06-21 10:42:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-21 10:42:59 (GMT) |
commit | eaa670228066220f08c8d73f80365c50058d40b8 (patch) | |
tree | 8337da439bddc74119b532b97f4a66297031658b /.github | |
parent | 9c44656febdcf72583e192ea4530fcfb0936c309 (diff) | |
download | cpython-eaa670228066220f08c8d73f80365c50058d40b8.zip cpython-eaa670228066220f08c8d73f80365c50058d40b8.tar.gz cpython-eaa670228066220f08c8d73f80365c50058d40b8.tar.bz2 |
Use CSV-separated outputs @ get-changed-files @ CI (#105151)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 16 | ||||
-rw-r--r-- | .github/workflows/reusable-docs.yml | 4 |
2 files changed, 5 insertions, 15 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4760c07..34fcce4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,21 +87,9 @@ jobs: with: filter: | Doc/** - # Temporarily skip paths with spaces - # (i.e. "C API", "Core and Builtins") - # to avoid "Error: One of your files includes a space". - # Pending https://github.com/python/core-workflow/issues/186 - # Misc/** - Misc/NEWS.d/next/Build/** - Misc/NEWS.d/next/Documentation/** - Misc/NEWS.d/next/IDLE/** - Misc/NEWS.d/next/Library/** - Misc/NEWS.d/next/Security/** - Misc/NEWS.d/next/Tests/** - Misc/NEWS.d/next/Tools-Demos/** - Misc/NEWS.d/next/Windows/** - Misc/NEWS.d/next/macOS/** + Misc/** .github/workflows/reusable-docs.yml + format: csv # works for paths with spaces - name: Check for docs changes if: >- github.event_name == 'pull_request' diff --git a/.github/workflows/reusable-docs.yml b/.github/workflows/reusable-docs.yml index c5a15a1..b39d8ce 100644 --- a/.github/workflows/reusable-docs.yml +++ b/.github/workflows/reusable-docs.yml @@ -38,12 +38,14 @@ jobs: uses: Ana06/get-changed-files@v2.2.0 with: filter: "Doc/**" + format: csv # works for paths with spaces - name: 'Build changed files in nit-picky mode' if: github.event_name == 'pull_request' continue-on-error: true run: | + set -Eeuo pipefail # Mark files the pull request modified - touch ${{ steps.changed_files.outputs.added_modified }} + python Doc/tools/touch-clean-files.py --clean '${{ steps.changed_files.outputs.added_modified }}' # Build docs with the '-n' (nit-picky) option; convert warnings to annotations make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n --keep-going" html 2>&1 | python Doc/tools/warnings-to-gh-actions.py |