Skip to content

Commit

Permalink
Account for GitHub Action inputs not supporting 'type'
Browse files Browse the repository at this point in the history
  • Loading branch information
guyer committed Sep 7, 2023
1 parent 6562048 commit 9000f7f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ inputs:
description:
Whether the results of pull requests should be pushed to
`pages-branch`.
type: boolean
default: false
# idiot GitHub Actions input doesn't support 'type'.
# https://stackoverflow.com/questions/76292948/github-action-boolean-input-with-default-value
default: 'false'
options:
- true
- false
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -127,7 +131,7 @@ runs:
(
github.event_name != 'pull_request'
|| (
inputs.push-pulls-pages
inputs.push-pulls-pages == 'true'
&& github.event.pull_request.head.repo.full_name == github.repository
)
) && (success() || steps.build-html.conclusion == 'success')
Expand Down

0 comments on commit 9000f7f

Please sign in to comment.