Skip to content

Commit

Permalink
Change logic for checking secrets exists (#4711)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnHDF authored Aug 13, 2024
1 parent 67ff153 commit 9824e7f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/cmake-ctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ jobs:

- name: Check Secrets exists
id: set-signing-state
env:
super_secret: ${{ secrets.AZURE_ENDPOINT }}
run: |
if [[ '${{ env.super_secret }}' == '' ]]
if [ '${{ secrets.AZURE_ENDPOINT }}' != '' ];
then
SIGN_VAL=$(echo "false")
SIGN_VAL=$(echo "true");
else
SIGN_VAL=$(echo "true")
SIGN_VAL=$(echo "false");
fi
echo "BINSIGN=$SIGN_VAL" >> $GITHUB_OUTPUT
shell: bash
Expand Down Expand Up @@ -493,14 +491,12 @@ jobs:

- name: Check Secrets exists
id: set-signing-state
env:
super_secret: ${{ secrets.AZURE_ENDPOINT }}
run: |
if [[ '${{ env.super_secret }}' == '' ]]
if [ '${{ secrets.AZURE_ENDPOINT }}' != '' ];
then
SIGN_VAL=$(echo "false")
SIGN_VAL=$(echo "true");
else
SIGN_VAL=$(echo "true")
SIGN_VAL=$(echo "false");
fi
echo "BINSIGN=$SIGN_VAL" >> $GITHUB_OUTPUT
shell: bash
Expand Down

0 comments on commit 9824e7f

Please sign in to comment.