From b7a2013494c0cc0faf0d8da0b361f60235cc1b57 Mon Sep 17 00:00:00 2001 From: IagoLast Date: Fri, 19 Apr 2024 14:06:12 +0200 Subject: [PATCH] ci: Check for secrets before run --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d73dca1..14347f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,11 @@ jobs: steps: - name: Check if secret is available run: | - if [[ -z "${{ secrets.BOT_PAT }}" ]]; then echo "Secret is not set or is empty" else echo "Secret is set" fi + if [[ -z "${{ secrets.BOT_PAT }}" ]]; then + echo "Secret is not set or is empty" + else + echo "Secret is set" + fi - name: Checkout uses: actions/checkout@v4 with: