diff --git a/.gitea/workflows/second.yaml b/.gitea/workflows/second.yaml index dd30b8a..3960243 100644 --- a/.gitea/workflows/second.yaml +++ b/.gitea/workflows/second.yaml @@ -5,8 +5,11 @@ jobs: print-variables_asd: runs-on: ubuntu-latest steps: - - run:| - if secrets.SECRET1; then - echo 'secret is here' - exit 0 + - run: | + if [ -n ${{ secrets.SECRET1 }} ]; then + echo 'secret is here' + else + echo 'secret missing' + exit 1 + fi - run: echo ${{vars.VARIABLE1}}