Skip to content

Commit

Permalink
Update auto-update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NobleMajo authored Dec 3, 2024
1 parent 67a17df commit c3ba313
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c3ba313

Please sign in to comment.