Skip to content

Commit

Permalink
Seal CLI Action update
Browse files Browse the repository at this point in the history
  • Loading branch information
seal-devops committed Mar 18, 2024
1 parent b95fd31 commit 27abbee
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.8
0.1.9
18 changes: 16 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ inputs:
default: ""
CLI_TOKEN:
required: false # required for fix mode
description: "Same token used by npm client. Usually called SEAL_NPM_TOKEN (without the project)"
description: "Authentication token to the seal artifact server"
token:
required: false # required for fix mode. only one of CLI_TOKEN and token is required
description: "Authentication token to the seal artifact server"

runs:
using: "composite"
Expand All @@ -49,6 +52,17 @@ runs:
if: inputs.mode == 'fix'
run: |
echo "fix_mode_flag=--mode ${{ inputs.fix_mode }}" >> ${GITHUB_OUTPUT}
- name: "Determine token value"
id: determine_token
shell: bash
run: |
if [[ "${{ inputs.token }}" ]]; then
echo "token=${{ inputs.token }}" >> ${GITHUB_OUTPUT}
elif [[ "${{ inputs.CLI_TOKEN }}" ]]; then
echo "token=${{ inputs.CLI_TOKEN }}" >> ${GITHUB_OUTPUT}
else
echo "token=" >> ${GITHUB_OUTPUT}
fi
- name: "Download CLI - Linux"
id: download
shell: bash
Expand All @@ -72,4 +86,4 @@ runs:
if [[ "${{ inputs.summary}}" != "" ]] && [[ "${{ inputs.mode }}" == "fix" ]]; then
SUMMARY_PARAM="--summarize ${{ inputs.summary}}"
fi
SEAL_PROJECT=${{ inputs.project }} SEAL_TOKEN=${{ inputs.CLI_TOKEN }} ${{ steps.download.outputs.cli_path }} -${{ inputs.verbosity }} ${{ inputs.mode }} ${{ steps.fix_mode_flag.outputs.fix_mode_flag }} ${{ inputs.target }} ${SUMMARY_PARAM}
SEAL_PROJECT=${{ inputs.project }} SEAL_TOKEN=${{ steps.determine_token.outputs.token }} ${{ steps.download.outputs.cli_path }} -${{ inputs.verbosity }} ${{ inputs.mode }} ${{ steps.fix_mode_flag.outputs.fix_mode_flag }} ${{ inputs.target }} ${SUMMARY_PARAM}

0 comments on commit 27abbee

Please sign in to comment.