Skip to content

Commit

Permalink
Add defaults and conditional to stop step from running
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch committed Mar 26, 2024
1 parent c32db23 commit 9eede40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ inputs:
description: |
Body of pull request if inside a pull request
required: false
default: ""
pr_number:
description: |
Pull request number
required: false
default: ""
owner:
description: |
Repository Owning Organisation
Expand All @@ -35,6 +37,7 @@ runs:
echo ${{ inputs.pr_body == '' && inputs.pr_number == ''}}
- uses: actions/github-script@v7
if: ${{ inputs.pr_body == '' && inputs.pr_number == '' }}
id: get_pr_data
with:
script: |
Expand All @@ -50,7 +53,7 @@ runs:
- uses: fregante/setup-git-user@v2

- name: Determine new tag version
if: ${{ inputs.pr_body == '' && inputs.pr_number == ''}}
if: ${{ inputs.pr_body == '' && inputs.pr_number == '' }}
shell: sh
id: determine_next_tag
# User controlled input needs to be santitised beforehand e.g., by adding an
Expand Down

0 comments on commit 9eede40

Please sign in to comment.