Skip to content

Commit

Permalink
Test of secret variable 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkadiuszNitkaSWI committed Aug 26, 2024
1 parent e2da086 commit 43e6295
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ on:
jobs:
check-secret:
runs-on: ubuntu-latest
env:
super_secret: ${{ secrets.SWO_ISSUER_ID }}
steps:
- name: Check if SWO_ISSUER_ID is set
run: |
if [ -z "${{ secrets.SWO_ISSUER_ID }}" ]; then
echo "Error: SWO_ISSUER_ID is not set."
exit 1
else
echo "SWO_ISSUER_ID is set."
fi
- if: ${{ env.super_secret != '' }}
run: echo 'This step will only run if the secret has a value set.'
- if: ${{ env.super_secret == '' }}
run: echo 'This step will only run if the secret does not have a value set.'

0 comments on commit 43e6295

Please sign in to comment.