From 63afb5c9983496bacb8cf90998fcc6d3bff58f6a Mon Sep 17 00:00:00 2001 From: IagoLast Date: Fri, 19 Apr 2024 14:04:13 +0200 Subject: [PATCH] chore: Check for secrets in the build Submodules are not being fetched. This might be because the BOT_PAT (personal access token) secret is not defined. This commit adds a step just to display a message if the secret is available or not. --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42f90fe..d73dca1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,6 +14,9 @@ jobs: build: runs-on: ubuntu-20.04 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 - name: Checkout uses: actions/checkout@v4 with: