renovateの設定変更 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Renovate SST Update | |
on: | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
sst-update: | |
runs-on: ubuntu-latest | |
# if: github.actor == 'renovate[bot]' && contains(github.event.pull_request.title, 'Update dependency sst') | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Run sst update and npm install | |
run: | | |
npx sst update | |
npm install | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add package.json | |
git add package-lock.json | |
git commit -m "Update dependencies" || echo "No changes to commit" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref }} |