Skip to content

Commit 114d575

Browse files
committed
refactor(workflow): reorder Setup SSH key step
- Moved the `Setup SSH key` step after the `Check known hosts file` step for better logical sequence in the workflow. - Ensures `known_hosts` is checked before setting up the SSH key.
1 parent 146efc0 commit 114d575

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/pull_request.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
steps:
1616
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17-
- name: Setup SSH key
18-
uses: ./
19-
with:
20-
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
21-
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
22-
log-public-key: false
2317
- name: Check known hosts file
2418
uses: pyTooling/Actions/with-post-step@9ceefdbf5dceae8c441fc393ed82344c7ca8bbdb # v3.1.1
2519
env:
@@ -29,6 +23,12 @@ jobs:
2923
sh check.sh
3024
post: |
3125
sh post_check.sh
26+
- name: Setup SSH key
27+
uses: ./
28+
with:
29+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
30+
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
31+
log-public-key: false
3232
- name: Install docker (Missing on MacOS)
3333
if: runner.os == 'macos'
3434
shell: bash

0 commit comments

Comments
 (0)