From 98a570f791c911722cde73f80abe8e10e31e811b Mon Sep 17 00:00:00 2001 From: willGraham01 <1willgraham@gmail.com> Date: Wed, 27 Mar 2024 09:34:45 +0000 Subject: [PATCH] Try one-liner if statement --- .github/workflows/fetch_sha.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/fetch_sha.yml b/.github/workflows/fetch_sha.yml index a89bdfd..7a32b78 100644 --- a/.github/workflows/fetch_sha.yml +++ b/.github/workflows/fetch_sha.yml @@ -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