Skip to content

Commit

Permalink
Add use_api feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ps-jay committed Oct 18, 2023
1 parent f49e352 commit ada4cd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ inputs:
description: 'Specify a non-default branch to use for the release tag (the one without -pre)'
required: false
type: string
use_api:
description: 'Use the GitHub API to discover current tags, which avoids the need for a git checkout, but requires `curl` and `jq`'
required: false
default: false

outputs:
current-version:
Expand Down Expand Up @@ -69,7 +73,9 @@ runs:
run: ${{ github.action_path }}/version-lookup.sh
shell: bash
env:
github_token: ${{ github.token }}
scheme: ${{ inputs.scheme }}
use_api: ${{ inputs.use_api }}

- id: version-increment
run: ${{ github.action_path }}/version-increment.sh
Expand Down

0 comments on commit ada4cd0

Please sign in to comment.