Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,17 @@ jobs:
echo "⚠️ Summary file not found"
fi

# Auto-restart job if extraction was cancelled (timeout) or failed
# Auto-restart job if extraction was cancelled (timeout) or failed.
# The `always() &&` is load-bearing: GitHub Actions implicitly ANDs a
# job's if: with success() unless the condition calls a status-check
# function (always/success/failure/cancelled) -- without it, this job
# silently skips every time, since the needed job having failed makes
# the implicit success() false regardless of the explicit check below.
check-and-restart:
name: Check Status & Restart if Needed
needs: extract-text
runs-on: ubuntu-latest
if: needs.extract-text.result == 'cancelled' || needs.extract-text.result == 'failure'
if: always() && (needs.extract-text.result == 'cancelled' || needs.extract-text.result == 'failure')
permissions:
actions: write
contents: read
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,20 @@ jobs:
echo "⚠️ Summary file not found"
fi

# Auto-restart job if extraction was cancelled (timeout) or failed
# Auto-restart job if extraction was cancelled (timeout) or failed.
#
# The `always() &&` is load-bearing, not decoration: GitHub Actions
# implicitly ANDs a job's `if:` with success() unless the condition
# explicitly calls a status-check function (always/success/failure/
# cancelled). Without it, this job silently skipped every single time --
# confirmed across every real failure/cancellation this repo has hit so
# far (it never once ran) -- because the needed job having failed made
# the implicit success() false regardless of the explicit check below.
check-and-restart:
name: Check Status & Restart if Needed
needs: extract-text
runs-on: ubuntu-latest
if: needs.extract-text.result == 'cancelled' || needs.extract-text.result == 'failure'
if: always() && (needs.extract-text.result == 'cancelled' || needs.extract-text.result == 'failure')
permissions:
actions: write
contents: read
Expand Down
Loading