Check for Deno Updates #271
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: Check for Deno Updates | |
| on: | |
| schedule: | |
| - cron: '0 8 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| check-updates: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: Check for outdated dependencies and update files | |
| id: update_step | |
| env: | |
| NO_COLOR: 1 | |
| run: | | |
| # Capture the list of outdated dependencies | |
| OUTPUT=$(deno outdated) | |
| echo "update_summary<<EOF" >> "$GITHUB_OUTPUT" | |
| echo "$OUTPUT" >> "$GITHUB_OUTPUT" | |
| echo "EOF" >> "$GITHUB_OUTPUT" | |
| deno outdated --update | |
| - name: Create Pull Request if changes exist | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "GitHub Actions: Update Deno Dependencies" | |
| title: "🤖 Update Deno Dependencies" | |
| body: | | |
| This pull request was automatically generated to update Deno dependencies. | |
| ### Update Summary | |
| ``` | |
| ${{ steps.update_step.outputs.update_summary }} | |
| ``` | |
| branch: "deno-dependency-updates" | |
| delete-branch: true | |
| labels: dependencies |