From 37909c1e63691cd0d916199ad6e5acbf76bcb288 Mon Sep 17 00:00:00 2001 From: Stefan Berggren Date: Sun, 30 Jul 2023 22:10:41 +0200 Subject: [PATCH] checkout via ssh, maybe this solves it? --- .github/workflows/auto-bump.yaml | 16 ++-------------- auto-bump.sh | 1 + 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/auto-bump.yaml b/.github/workflows/auto-bump.yaml index 4d41fc1..a35ee2e 100644 --- a/.github/workflows/auto-bump.yaml +++ b/.github/workflows/auto-bump.yaml @@ -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" diff --git a/auto-bump.sh b/auto-bump.sh index 0edebd8..5f0a25b 100755 --- a/auto-bump.sh +++ b/auto-bump.sh @@ -134,3 +134,4 @@ $(./update.sh $OLD_VERSION $NEW_VERSION) ref #$(get_issue_number "${NEW_VERSION_MAJOR_MINOR}") " | create_pr +