Skip to content

Commit f5003e1

Browse files
committed
Set SSH_PRIVATE_KEY env var so it can be used in the "if" statement.
1 parent 5354016 commit f5003e1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ jobs:
110110
deploy-code:
111111
name: Deploy Code
112112
runs-on: ${{ inputs.github_runs_on }}
113+
env:
114+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
113115

114116
steps:
115117

@@ -121,9 +123,9 @@ jobs:
121123

122124
# Enable SSH agent to allow preview sites to clone.
123125
- uses: webfactory/ssh-agent@v0.9.1
124-
if: ${{ secrets.SSH_PRIVATE_KEY }}
126+
if: ${{ env.SSH_PRIVATE_KEY }}
125127
with:
126-
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
128+
ssh-private-key: ${{ env.SSH_PRIVATE_KEY }}
127129

128130
- name: Clone code
129131
env:

0 commit comments

Comments
 (0)