Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ssh checkout #79

Merged
merged 8 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/reusable.build-deploy-scicat-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ on:
JSON_SECRETS:
description: other secrets in json format
required: false
SSH_PRIVATE_KEY:
description: ssh key to private submodule
required: false

jobs:

Expand All @@ -49,6 +52,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: recursive
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/reusable.changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ on:
changed:
description: boolean to check if changes on input files
value: ${{ jobs.changed.outputs.changed }}

secrets:
SSH_PRIVATE_KEY:
description: ssh key to private submodule
required: false

jobs:
changed:
Expand All @@ -25,6 +28,7 @@ jobs:
with:
submodules: recursive
fetch-depth: 0
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Get changed files
id: changed-files
Expand Down