Skip to content

Commit

Permalink
Manually setup a ssh agent
Browse files Browse the repository at this point in the history
  • Loading branch information
nsg committed Jul 30, 2023
1 parent 87b31ed commit ae64234
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/auto-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,21 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Add SSH key to SSH Agent
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p /home/runner/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /home/runner/.ssh/github_actions
chmod 600 /home/runner/.ssh/github_actions
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add /home/runner/.ssh/github_actions

- name: Bump version
env:
GH_TOKEN: ${{ github.token }}
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
git config --global user.name "Github Action Automation"
git config --global user.email "nsg@users.noreply.github.com"
Expand Down

0 comments on commit ae64234

Please sign in to comment.