Skip to content

Commit

Permalink
fix(get-github-token): improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Apr 20, 2023
1 parent af33ea9 commit ad7b833
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions get-github-token/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ outputs:
runs:
using: composite
steps:
- id: log
- name: 'Log'
id: log
shell: bash
run: |
echo "token=${{ inputs.token }}"
echo "app-id=${{ inputs.app-id }}"
echo "private-key=${{ inputs.private-key }}"
if [ -n "${{ inputs.github-token }}" ]; then
echo "Using GitHub token."
elif [ -n "${{ inputs.app-id }}" ] && [ -n "${{ inputs.private-key }}" ]; then
echo "Using app credentials."
fi
- id: app
if: inputs.token == '' && (inputs.app-id != '' || inputs.private-key != '')
Expand Down

0 comments on commit ad7b833

Please sign in to comment.