Skip to content

Commit

Permalink
checkout via ssh, maybe this solves it?
Browse files Browse the repository at this point in the history
  • Loading branch information
nsg committed Jul 30, 2023
1 parent de596a7 commit 37909c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/auto-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,12 @@ jobs:

steps:
- uses: actions/checkout@v3

# A GitHub Action can't trigger another GitHub Actions Events
# using the GH_TOKEN. So we need to use a SSH key to trigger
# the push event in system-tests.yaml for our pull request.
- 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
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- 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
1 change: 1 addition & 0 deletions auto-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,4 @@ $(./update.sh $OLD_VERSION $NEW_VERSION)
ref #$(get_issue_number "${NEW_VERSION_MAJOR_MINOR}")
" | create_pr

0 comments on commit 37909c1

Please sign in to comment.