Skip to content

Commit

Permalink
feat: generate error if required fields are not present when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Feb 5, 2025
1 parent 9fd142a commit e923edb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ outputs:
runs:
using: composite
steps:
- name: Check Required Inputs
if: inputs.publish == 'true' && ( !inputs.github-app-id || !inputs.github-app-private-key )
shell: bash
run: echo "github-app-id and github-app-private-key inputs must be present when publish is true" && false

- name: Create GitHub App Token
id: app-token
if: inputs.github-app-id && inputs.github-app-private-key
Expand Down

0 comments on commit e923edb

Please sign in to comment.