diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 2b78993..230b50d 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -26,26 +26,10 @@ jobs: npm run build npm run test --if-present - - name: Create Private Key for SSH - run: | - touch /tmp/github-actions-bot - chmod 600 /tmp/github-actions-bot - echo "${{ secrets.REPO_DEPLOY_KEY }}" > /tmp/github-actions-bot - - name: Commit and push changes uses: EndBug/add-and-commit@v9 - env: - GIT_SSH_COMMAND: "ssh -i /tmp/github-actions-bot -o StrictHostKeyChecking=no" with: add: 'package*.json' - author_name: 'github-actions[bot]' - author_email: 'github-actions[bot]@users.noreply.github.com' - fetch: false - message: 'Npm deps update' - pathspec_error_handling: exitImmediately - pull: '--rebase --autostash' - - - name: Cleanup - run: | - unset REPO_DEPLOY_KEY - rm -rf /tmp/* + message: 'Bot: npm deps update' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}