[ci] Set SSH_AUTH_SOCK for ssh-agent

This commit is contained in:
Hansung Kim
2023-10-17 14:41:25 -07:00
parent 3474060c45
commit 6864f40534

View File

@@ -16,6 +16,7 @@ env:
conda-env-name-no-time: cy-${{ github.run_id }}
workflow-timestamp: ${{ github.event.pull_request.updated_at }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_AUTH_SOCK: /tmp/ssh_agent_github.sock
jobs:
cancel-prior-workflows:
@@ -127,7 +128,7 @@ jobs:
# ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY }}
- name: Run ssh-agent
run: |
eval `ssh-agent -s`
eval `ssh-agent -a $SSH_AUTH_SOCK -s`
echo "${{ secrets.PRIVATE_SSH_KEY }}" | ssh-add -
- name: Delete old checkout
run: |
@@ -279,7 +280,7 @@ jobs:
# ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY }}
- name: Run ssh-agent
run: |
eval `ssh-agent -s`
eval `ssh-agent -a $SSH_AUTH_SOCK -s`
echo "${{ secrets.PRIVATE_SSH_KEY }}" | ssh-add -
- name: Delete old checkout
run: |
@@ -309,7 +310,7 @@ jobs:
# ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY }}
- name: Run ssh-agent
run: |
eval `ssh-agent -s`
eval `ssh-agent -a $SSH_AUTH_SOCK -s`
echo "${{ secrets.PRIVATE_SSH_KEY }}" | ssh-add -
- name: Delete old checkout
run: |
@@ -339,7 +340,7 @@ jobs:
# ssh-private-key: ${{ secrets.PRIVATE_SSH_KEY }}
- name: Run ssh-agent
run: |
eval `ssh-agent -s`
eval `ssh-agent -a $SSH_AUTH_SOCK -s`
echo "${{ secrets.PRIVATE_SSH_KEY }}" | ssh-add -
- name: Delete old checkout
run: |