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

Add a workflow to automated dependencies update [SAME VERSION] #224

Merged
merged 1 commit into from Jan 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/auto-update-dependencies.yml
@@ -0,0 +1,32 @@
name: Dependencies autoupdate

on:
schedule:
- cron: '0 0 * * *' # run daily at 12:00 am

env:
CARGO_TERM_COLOR: always

jobs:
auto-update-dependencies:
runs-on: ubuntu-latest

steps:
- name: Checkout the head commit of the branch
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Install Linux requirements
run: |
apt_dependencies="git curl libssl-dev pkg-config libudev-dev libv4l-dev"
echo "Run apt update and apt install the following dependencies: $apt_dependencies"
sudo apt update
sudo apt install -y $apt_dependencies

- name: Check for dependency updates
uses: romoh/dependencies-autoupdate@v1.1
romoh marked this conversation as resolved.
Show resolved Hide resolved
with:
token: ${{ secrets.GITHUB_TOKEN }}
update-command: "'cargo update && cargo test'"
on-changes-command: "'./version.sh -u -p'"