Skip to content

Commit

Permalink
Add explicit continue-on-error input to the preview workflow (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz authored Feb 2, 2025
1 parent 3748abb commit 162aa07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on:
workflow_call:
inputs:
strict:
description: 'Treat warnings as errors'
type: boolean
default: true
continue-on-error:
description: 'Do not fail to publish if build fails'
type: boolean
required: false
default: true # default for will be false after migration

permissions:
id-token: write
Expand Down Expand Up @@ -62,7 +68,7 @@ jobs:
- name: Build documentation
if: github.repository != 'elastic/docs-builder'
uses: elastic/docs-builder@main
continue-on-error: ${{ inputs.strict != 'true' }} # Will be removed after the migration phase
continue-on-error: ${{ inputs.continue-on-error == 'true' }} # Will be removed after the migration phase
with:
prefix: "/${{ github.repository }}/pull/${{ github.event.pull_request.number }}"
strict: ${{ inputs.strict }}
Expand Down
2 changes: 1 addition & 1 deletion actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
description: 'Treat warnings as errors'
required: false
continue-on-error:
description: 'Treat warnings as errors'
description: 'Do not fail to publish if build fails'
required: false
default: "false"
private:
Expand Down

0 comments on commit 162aa07

Please sign in to comment.