Skip to content

Commit 146efc0

Browse files
committed
refactor(action): reorganize SSH agent setup
- Moved `webfactory/ssh-agent` step after the main action logic. - Ensures SSH agent setup is performed after necessary preconditions are handled. - Updated action steps for better readability and logical flow.
1 parent 8b60a76 commit 146efc0

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,14 +35,6 @@ 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 }}
4638
- uses: pyTooling/Actions/with-post-step@9ceefdbf5dceae8c441fc393ed82344c7ca8bbdb # v3.1.1
4739
env:
4840
SSH_HOST: ${{ inputs.ssh-host }}
@@ -53,6 +45,14 @@ runs:
5345
sh action.sh
5446
post: |
5547
sh post_action.sh
48+
- uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
49+
with:
50+
ssh-private-key: ${{ inputs.ssh-private-key }}
51+
ssh-auth-sock: ${{ inputs.ssh-auth-sock }}
52+
log-public-key: ${{ inputs.log-public-key }}
53+
ssh-agent-cmd: ${{ inputs.ssh-agent-cmd }}
54+
ssh-add-cmd: ${{ inputs.ssh-add-cmd }}
55+
git-cmd: ${{ inputs.git-cmd }}
5656
branding:
5757
icon: loader
5858
color: 'purple'

0 commit comments

Comments
 (0)