Skip to content

Commit c430986

Browse files
committed
Use secrets instead of inputs.
1 parent acf9cbf commit c430986

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ on:
9090
default: ${{ inputs.ddev_project_name }}.${{ inputs.ddev_project_tld }}
9191
description: The URL to use for the GitHub environment.
9292

93-
ssh_private_key:
94-
type: string
95-
description: |
96-
A private key with access to your git repository or other servers.
97-
This will be installed with the webfactory/ssh-agent so the key will only be available inside the job.
98-
9993
env:
10094
# Tell ddev to not set /etc/hosts file.
10195
DDEV_NONINTERACTIVE: true
@@ -118,9 +112,9 @@ jobs:
118112

119113
# Enable SSH agent to allow preview sites to clone.
120114
- uses: webfactory/[email protected]
121-
if: ${{ inputs.SSH_PRIVATE_KEY }}
115+
if: ${{ secrets.SSH_PRIVATE_KEY }}
122116
with:
123-
ssh-private-key: ${{ inputs.SSH_PRIVATE_KEY }}
117+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
124118

125119
- name: Clone code
126120
env:

0 commit comments

Comments
 (0)