Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

Commit c9f1b06

Browse files
committed
fixed other workflow file for private repo cloning
1 parent 325b24a commit c9f1b06

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish_latest.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ jobs:
88
build_and_publish:
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Set up SSH key
12+
run: |
13+
mkdir -p ~/.ssh
14+
echo "${{ secrets.ACTIONS_SSH_KEY }}" > ~/.ssh/id_rsa
15+
chmod 600 ~/.ssh/id_rsa
16+
ssh-keyscan github.com >> ~/.ssh/known_hosts
17+
1118
- name: checkout
1219
uses: actions/checkout@v2
1320
with:
1421
submodules: recursive
22+
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}
1523

1624
- name: Login to GitHub Container Registry
1725
uses: docker/login-action@v1

.github/workflows/publish_version.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ jobs:
1414
echo "${{ secrets.ACTIONS_SSH_KEY }}" > ~/.ssh/id_rsa
1515
chmod 600 ~/.ssh/id_rsa
1616
ssh-keyscan github.com >> ~/.ssh/known_hosts
17+
1718
- name: checkout
1819
uses: actions/checkout@v2
1920
with:
2021
submodules: recursive
2122
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}
23+
2224
- name: Login to GitHub Container Registry
2325
uses: docker/login-action@v1
2426
with:

0 commit comments

Comments
 (0)