@@ -5,8 +5,11 @@ jobs:
|
|||||||
print-variables_asd:
|
print-variables_asd:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run:|
|
- run: |
|
||||||
if secrets.SECRET1; then
|
if [ -n ${{ secrets.SECRET1 }} ]; then
|
||||||
echo 'secret is here'
|
echo 'secret is here'
|
||||||
exit 0
|
else
|
||||||
|
echo 'secret missing'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
- run: echo ${{vars.VARIABLE1}}
|
- run: echo ${{vars.VARIABLE1}}
|
||||||
|
|||||||
Reference in New Issue
Block a user