Skip to content

Commit e8b8f11

Browse files
authored
Merge pull request #110 from badgerloop-software/sbasu107-patch-1
Update publish_version.yaml to clone private submodule
2 parents 78cf5f9 + c9f1b06 commit e8b8f11

2 files changed

Lines changed: 17 additions & 1 deletion

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: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ 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
15-
22+
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}
23+
1624
- name: Login to GitHub Container Registry
1725
uses: docker/login-action@v1
1826
with:

0 commit comments

Comments
 (0)