Skip to content

Commit

Permalink
Try one-liner if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
willGraham01 committed Mar 27, 2024
1 parent 97b7b3f commit 98a570f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/fetch_sha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ jobs:
steps:
- id: determine-if-pr-comment
run: |
if [ -z "${{ github.event.issue.pull_request }}" ] \
then \
echo "is-pr=true" >> "${GITHUB_OUTPUT}" \
else \
echo "is-pr=false" >> "${GITHUB_OUTPUT}" \
fi
if [ -z "${{ github.event.issue.pull_request }}" ]; then echo "is-pr=true" >> "${GITHUB_OUTPUT}"; else echo "is-pr=false" >> "${GITHUB_OUTPUT}"; fi
set-variables:
name: Create unique output file identifier and artifact name
Expand Down

0 comments on commit 98a570f

Please sign in to comment.