mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Add github action for updating the lockfiles
This commit is contained in:
parent
c2daa64329
commit
218058cfd5
15
.github/scripts/update-lockfiles.sh
vendored
Executable file
15
.github/scripts/update-lockfiles.sh
vendored
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
function update_lockfiles() {
|
||||||
|
for toml in **/Cargo.toml; do
|
||||||
|
(cd "$(dirname "$toml")" && cargo generate-lockfile)
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
update_lockfiles
|
||||||
|
update_lockfiles
|
||||||
|
update_lockfiles
|
||||||
|
update_lockfiles
|
||||||
|
|
||||||
|
git -c user.name="GBA bot" -c user.email="gw@ilym.me" commit -a -m 'Update lockfiles'
|
||||||
|
git push
|
19
.github/workflows/update-lockfiles.yml
vendored
Normal file
19
.github/workflows/update-lockfiles.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: Update lockfiles
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ 'renovate/*' ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ 'renovate/*' ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Set CARGO_TARGET_DIR
|
||||||
|
run: echo "CARGO_TARGET_DIR=$HOME/target" >> $GITHUB_ENV
|
||||||
|
- name: Update lock files
|
||||||
|
run: bash .github/scripts/update-lockfiles.sh
|
Loading…
Reference in a new issue