Skip to content

Commit

Permalink
feat: add validate input option (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored May 22, 2024
1 parent 3ca9c8d commit 033e8f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ steps:
publish: true # you probably want to use some conditional logic here
token: ${{ secrets.PAT }} # required to publish
upstream_homebrew_core_repo: Homebrew/homebrew-core
validate: false # skip the audit and install steps
```
> **Warning**:
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ inputs:
description: 'The upstream homebrew-core repository that the fork is based on. Must be a GitHub repo.'
default: 'Homebrew/homebrew-core'
required: false
validate:
description: 'Whether to validate the formula.'
default: 'true'
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -119,6 +123,7 @@ runs:
INPUT_CONTRIBUTE_TO_HOMEBREW_CORE: ${{ inputs.contribute_to_homebrew_core }}
INPUT_UPSTREAM_HOMEBREW_CORE_REPO: ${{ inputs.upstream_homebrew_core_repo }}
id: homebrew-tests
if: ${{ inputs.validate == 'true' }}
shell: bash
working-directory: ${{ github.action_path }}
run: |
Expand Down

0 comments on commit 033e8f4

Please sign in to comment.