Skip to content

Commit 6ab1366

Browse files
committed
chore(action.yml): reorder steps for ssh-agent setup
Moved the ssh-agent setup step earlier in the workflow to ensure SSH credentials are available before invoking subsequent scripts. Removed redundant ssh-agent step at the end of the workflow to streamline execution.
1 parent d5847cd commit 6ab1366

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ inputs:
3535
runs:
3636
using: 'composite'
3737
steps:
38+
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
39+
with:
40+
ssh-private-key: ${{ inputs.ssh-private-key }}
41+
ssh-auth-sock: ${{ inputs.ssh-auth-sock }}
42+
log-public-key: ${{ inputs.log-public-key }}
43+
ssh-agent-cmd: ${{ inputs.ssh-agent-cmd }}
44+
ssh-add-cmd: ${{ inputs.ssh-add-cmd }}
45+
git-cmd: ${{ inputs.git-cmd }}
3846
- uses: pyTooling/Actions/with-post-step@9ceefdbf5dceae8c441fc393ed82344c7ca8bbdb # v3.1.1
3947
env:
4048
SSH_HOST: ${{ inputs.ssh-host }}
@@ -46,12 +54,4 @@ runs:
4654
./action.sh
4755
post: |
4856
./post_action.sh
49-
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
50-
with:
51-
ssh-private-key: ${{ inputs.ssh-private-key }}
52-
ssh-auth-sock: ${{ inputs.ssh-auth-sock }}
53-
log-public-key: ${{ inputs.log-public-key }}
54-
ssh-agent-cmd: ${{ inputs.ssh-agent-cmd }}
55-
ssh-add-cmd: ${{ inputs.ssh-add-cmd }}
56-
git-cmd: ${{ inputs.git-cmd }}
5757

0 commit comments

Comments
 (0)