prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey

weekly taze deps update action

Tyler f8b758ac df4b8d8e

+48
+48
.github/workflows/update-dependencies.yml
··· 1 + name: Update Dependencies 2 + 3 + on: 4 + schedule: 5 + # Run every Monday at 9:00 AM UTC 6 + - cron: '0 9 * * 1' 7 + workflow_dispatch: # Allow manual trigger 8 + 9 + jobs: 10 + update_dependencies: 11 + name: Update Dependencies 12 + runs-on: ubuntu-latest 13 + permissions: 14 + contents: write 15 + pull-requests: write 16 + steps: 17 + - uses: actions/checkout@v4 18 + 19 + - uses: ./.github/actions/prepare 20 + 21 + - name: Install taze 22 + run: pnpm add -g taze 23 + 24 + - name: Update dependencies 25 + run: taze -w -r 26 + 27 + - name: Create Pull Request 28 + env: 29 + GH_TOKEN: ${{ github.token }} 30 + run: | 31 + BRANCH_NAME="chore/update-deps-$(date +%m-%d)" 32 + git config user.name "github-actions[bot]" 33 + git config user.email "github-actions[bot]@users.noreply.github.com" 34 + git checkout -b "$BRANCH_NAME" 35 + git add . 36 + if git diff --staged --quiet; then 37 + echo "No dependency updates available" 38 + exit 0 39 + fi 40 + git commit -m "chore: update dependencies" 41 + git push origin "$BRANCH_NAME" 42 + gh pr create --title "chore: update dependencies" --body "## Automated dependency updates 43 + 44 + This PR was automatically generated by the weekly dependency update workflow. 45 + 46 + Updates were performed using \`taze -w -r\` which updates all dependencies to their latest versions. 47 + 48 + Please review the changes carefully before merging." --label dependencies