Skip to content

Commit

Permalink
Merge pull request #224 from romoh/main
Browse files Browse the repository at this point in the history
Add a workflow to automate dependencies update [SAME VERSION]
  • Loading branch information
romoh authored Jan 26, 2021
2 parents 3816bf8 + c25d85c commit b179c15
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/auto-update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
update-command: "'cargo update && cargo test'"
on-changes-command: "'./version.sh -u -p'"

0 comments on commit b179c15

Please sign in to comment.