Skip to content

Commit

Permalink
Create weekly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Power2All authored Nov 29, 2024
1 parent fc817c8 commit 09f8dc5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Weekly Update

on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
upgrade:
name: Build on Ubuntu Latest (Stable)
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Update Cargo.lock
run: cargo update --verbose

- name: Push changes
run: |
git config user.name ${{ secrets.GH_USER }}
git config user.email "${{ secrets.GH_MAIL }}"
git add Cargo.lock
git commit -m "Weekly Cargo.lock update"
git push

0 comments on commit 09f8dc5

Please sign in to comment.