Skip to content

Commit

Permalink
Add ssh-key option
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Mar 20, 2024
1 parent 6fe9d3c commit 8487070
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/check-downstream-compiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ name: Check downstream dependency compiles

on:
workflow_call:
secrets:
SSH_PRIVATE_KEY:
required: false
description: ''
inputs:
runner:
required: false
Expand All @@ -21,6 +25,11 @@ on:
required: false
default: 'lurk-lab/lurk-rs'
type: string
# Used to checkout private repos
ssh-key:
required: false
default: false
type: boolean
# List of prerequisite Ubuntu packages, separated by whitespace
packages:
required: false
Expand All @@ -39,6 +48,10 @@ jobs:
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: webfactory/[email protected]
if: inputs.ssh-key
with:
ssh-private-key: "${{ secrets.SSH_PRIVATE_KEY }}"
- name: Set env
run: |
echo "DOWNSTREAM_REPO=$(echo ${{ inputs.repository }} | awk -F'/' '{ print $2 }')" | tee -a $GITHUB_ENV
Expand Down

0 comments on commit 8487070

Please sign in to comment.