From 37a49cbebe1be3a5efed08d52f8cf4b16eceba7e Mon Sep 17 00:00:00 2001 From: Niko Kangas Date: Wed, 5 Aug 2026 15:02:24 +0200 Subject: [PATCH] as --- .gitea/workflows/second.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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}}