Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dependancies #8

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/update-dependancies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

name: Update Dependancies

jobs:
update-dependancies:
runs-on: ubuntu-latest
steps:
- name: Timestamp Action
run: |
echo "NOW=$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
id: version

- name: Checkout Source
uses: actions/checkout@v4

- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install Cargo Edit
run: |
cargo install -f cargo-edit

- name: Update Rust Dependencies
id: update-rust-dependencies
run: |
cargo update
echo 'CARGO_UPGRADE_OUTPUT<<EOF' >> $GITHUB_OUTPUT
cargo-upgrade upgrade --incompatible 2>&1 >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: |
Cargo.toml
title: Update Dependancies
body: ${{ steps.update-rust-dependencies.outputs.CARGO_UPGRADE_OUTPUT }}
commit-message: ${{ steps.update-rust-dependencies.outputs.CARGO_UPGRADE_OUTPUT }}
assignees: StefanBossbaly
branch: update-dependancies-${{ steps.version.outputs.NOW }}
delete-branch: true
token: ${{ secrets.PAT_TOKEN }}
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ include = [
serde_debugging = ["dep:serde_path_to_error"]

[dependencies]
reqwest = { version = "0.12.4", features = ["json"] }
serde_json = "1.0.117"
serde = { version = "1.0.203", features = ["derive"] }
reqwest = { version = "0.12.5", features = ["json"] }
serde_json = "1.0.120"
serde = { version = "1.0.204", features = ["derive"] }
chrono = { version = "0.4", features = ["serde"] }
thiserror = "1.0.61"
thiserror = "1.0.63"
serde_path_to_error = { version = "0.1.16", optional = true }

[dev-dependencies]
mockito = "1.4.0"
tokio = { version = "1.38.0", features = ["full"] }
tokio = { version = "1.38.1", features = ["full"] }
anyhow = "1.0.86"

[[example]]
Expand Down
Loading