Skip to content

Commit 5354016

Browse files
committed
Secrets are like inputs.
1 parent 7987132 commit 5354016

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/operations.site.deploy.ddev.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
name: Deploy site
99
on:
1010
workflow_call:
11+
12+
secrets:
13+
SSH_PRIVATE_KEY:
14+
description: A private key to use to clone repositories and, optionally, to sync data.
15+
required: false
16+
1117
inputs:
1218

1319
git_repository:
@@ -115,9 +121,9 @@ jobs:
115121

116122
# Enable SSH agent to allow preview sites to clone.
117123
- uses: webfactory/[email protected]
118-
if: ${{ env.SSH_PRIVATE_KEY }}
124+
if: ${{ secrets.SSH_PRIVATE_KEY }}
119125
with:
120-
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
126+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
121127

122128
- name: Clone code
123129
env:

0 commit comments

Comments
 (0)