Skip to content

Commit

Permalink
chore: Check for secrets in the build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
IagoLast authored Apr 19, 2024
1 parent 8c208c1 commit 63afb5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 63afb5c

Please sign in to comment.