Skip to content

Commit

Permalink
Set debug flag in a dedicated step
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed May 14, 2024
1 parent d3624cb commit 0ad4f85
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ inputs:
description: Fail the action if any hyperlinks are broken
required: false
default: "false"
outputs: {}
outputs: { }
runs:
using: composite
steps:
Expand All @@ -45,13 +45,18 @@ runs:
chmod +x asset
shell: bash

- name: Run Asset
- name: Set Debug Flag
run: |
debug="false"
if [[ ${{ inputs.debug }} == true || ${{ env.RUNNER_DEBUG }} == 1 ]]; then
debug="true"
if [ "${{ inputs.debug }}" == "true" ] || [ "${{ env.RUNNER_DEBUG }}" == "1" ]; then
echo "debug=true" >> $GITHUB_ENV
else
echo "debug=false" >> $GITHUB_ENV
fi
./asset --debug "$debug" --owner "${{ inputs.owner }}" --repo "${{ inputs.repo }}" --exclude "${{ inputs.excludeHostnames }}"
shell: bash

- name: Run Asset
run: |
./asset --debug ${{ env.debug }} --owner ${{ inputs.owner }} --repo ${{ inputs.repo }} --exclude "${{ inputs.excludeHostnames }}"
shell: bash

- name: Summary
Expand Down

0 comments on commit 0ad4f85

Please sign in to comment.