Skip to content

Commit

Permalink
Move HAVE_REQUIRED_SECRETS to workflow level
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Apr 14, 2024
1 parent bd64999 commit 09179a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
HAVE_REQUIRED_SECRETS: ${{ secrets.SSH_KNOWN_HOSTS != '' }}

jobs:
# Build job
build:
Expand Down Expand Up @@ -48,8 +51,6 @@ jobs:
# - PRIVATE_SSH_KEY
# - CI_USER_NAME
# - STATIC_WEBSITE_PATH
env:
HAVE_REQUIRED_SECRETS: ${{ secrets.SSH_KNOWN_HOSTS != '' }}
if: ${{ env.HAVE_REQUIRED_SECRETS == 'true' }}
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 09179a4

Please sign in to comment.