From 479f7150b1d22f5986768277f41c350fe63439a7 Mon Sep 17 00:00:00 2001 From: AnneBeyer Date: Tue, 11 Aug 2026 12:47:30 +0200 Subject: [PATCH] add step to create empty files if logs were not created --- .github/workflows/bot-lint-comment.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/bot-lint-comment.yml b/.github/workflows/bot-lint-comment.yml index 6dc9c2c8de63d..1e4f10d20a689 100644 --- a/.github/workflows/bot-lint-comment.yml +++ b/.github/workflows/bot-lint-comment.yml @@ -23,6 +23,7 @@ jobs: run: mkdir -p "$ARTIFACTS_DIR" - name: Download artifact + continue-on-error: true uses: actions/download-artifact@v8 with: name: lint-log @@ -30,6 +31,12 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ github.event.workflow_run.id }} + - name: Ensure log files exist + # Check that the log files exist and create empty ones in case the Linter job + # failed to produce/upload them (see + # https://github.com/scikit-learn/scikit-learn/issues/34719). + run: touch "$ARTIFACTS_DIR/linting_output.txt" "$ARTIFACTS_DIR/versions.txt" + # Adapted from https://github.com/docker-mailserver/docker-mailserver/pull/4267#issuecomment-2484565209 # Unfortunately there is no easier way to do it - name: Get PR number from triggering workflow information