Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed May 10, 2024
1 parent 0b05f35 commit 0142086
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,12 @@ inputs:
''"
required: false
default: ""
summary:
description: "Whether to add the output to the workflow summary"
required: false
default: true
branding:
color: "purple"
icon: "check-circle"
runs:
using: 'docker'
image: 'Dockerfile'
steps:
- name: fawltydeps
run: |
set -euo pipefail
set +e
out=$(fawltydeps $INPUT_OPTIONS $INPUT_SRC)
exit_code=$?
set -e
echo "$out"
if [[ "${{ inputs.summary }}" = "true" ]]; then
echo
echo "\`\`\`python" >> "$GITHUB_STEP_SUMMARY"
echo "${out}" >> "$GITHUB_STEP_SUMMARY"
echo "\`\`\`" >> "$GITHUB_STEP_SUMMARY"
fi
exit "$exit_code"
env:
INPUT_OPTIONS: ${{ inputs.options }}
INPUT_SRC: ${{ inputs.src }}
pythonioencoding: utf-8
shell: bash
args:
- ${{ inputs.options }}

0 comments on commit 0142086

Please sign in to comment.