From ada4cd0a603556da4798cde376839644a2b0af3c Mon Sep 17 00:00:00 2001 From: Phil Jay Date: Wed, 18 Oct 2023 23:47:17 +1100 Subject: [PATCH] Add `use_api` feature --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index 7b51a8f..dec645b 100644 --- a/action.yml +++ b/action.yml @@ -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: @@ -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