Skip to content

Commit 8b674a8

Browse files
committed
Add SSH key
1 parent 61f3f18 commit 8b674a8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: ci
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
37

48
# https://stackoverflow.com/questions/57612428/cloning-private-github-repository-within-organisation-in-actions
59
# I created a token with private repo access in my account that I set in the rust-bfield repo vault
@@ -25,6 +29,10 @@ jobs:
2529
rust-version: ${{ matrix.rust }}
2630
- name: Build System Info
2731
run: rustc --version
32+
- name: create SSH key
33+
uses: webfactory/ssh-agent@v0.2.0
34+
with:
35+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2836
- name: Run tests
2937
env:
3038
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)