Update Dependencies #1
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: Update Dependencies | |
| on: | |
| schedule: | |
| - cron: '0 9 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| update-dependencies: | |
| name: Update Dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev \ | |
| libxrandr-dev libx11-dev libxi-dev libxinerama-dev libxcursor-dev \ | |
| libgl1-mesa-dev pkg-config | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Update dependencies | |
| run: cargo update | |
| - name: Check if there are changes | |
| id: changes | |
| run: | | |
| git diff --quiet Cargo.lock || echo "changed=true" >> $GITHUB_OUTPUT | |
| - name: Create Pull Request | |
| if: steps.changes.outputs.changed == 'true' | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "chore: update dependencies" | |
| title: "chore: update dependencies" | |
| body: | | |
| Automated dependency update. | |
| ## Changes | |
| - Updated Cargo.lock with latest compatible dependency versions | |
| branch: chore/update-dependencies | |
| delete-branch: true |