clcmo está atualizando as dependências do projeto #47
This file contains hidden or 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: Atualizar Dependências do Projeto com Dependabot | |
| run-name: ${{ github.actor }} está atualizando as dependências do projeto | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' # Runs daily at 2AM UTC | |
| workflow_dispatch: # Optional: allows manual trigger | |
| jobs: | |
| dependency-update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Check for updates | |
| run: npm outdated | |
| - name: Update dependencies | |
| run: | | |
| npm update | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git commit -am "Automated dependency update" | |
| git push |