mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-19 01:14:44 -05:00
[CI] Condition adding the SSH key to main branch
Secrets are not available to branches from forked repos, so the SSH setup step has to be skipped unless the main branch is being used. Fixes #882
This commit is contained in:
committed by
Ray Speth
parent
f4da0bd877
commit
df37795a75
@@ -138,6 +138,7 @@ jobs:
|
||||
# machine that has previously logged in to cantera.org and trusts
|
||||
# that it logged in to the right machine
|
||||
- name: Set up SSH key and host for deploy
|
||||
if: github.event_name == 'push' && github.repository_owner == 'Cantera' && github.ref == 'master'
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
key: ${{ secrets.CTDEPLOY_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user