forked from DGNum/infrastructure
fix(workflows): Another one?
This commit is contained in:
parent
450cac2fe8
commit
6f137c1dd5
1 changed files with 6 additions and 4 deletions
|
@ -2,7 +2,7 @@ name: npins update
|
|||
on:
|
||||
schedule:
|
||||
# Run at 11 o'clock every day
|
||||
- cron: "0 12 * * *"
|
||||
- cron: "37 12 * * *"
|
||||
|
||||
jobs:
|
||||
npins_update:
|
||||
|
@ -12,6 +12,8 @@ jobs:
|
|||
run: apt-get update && apt-get install sudo
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
path: src
|
||||
|
||||
- uses: https://github.com/cachix/install-nix-action@v22
|
||||
with:
|
||||
|
@ -22,12 +24,12 @@ jobs:
|
|||
nix-env -iA npins
|
||||
nix-env -iA tea
|
||||
|
||||
- name: Update dependencies
|
||||
- name: Update dependencies and open PR if necessary
|
||||
run: |
|
||||
cd src
|
||||
|
||||
npins update
|
||||
|
||||
- name: Open PR if necessary
|
||||
run: |
|
||||
git diff-index --quiet HEAD
|
||||
|
||||
if [ $? -eq 1 ]; then
|
||||
|
|
Loading…
Reference in a new issue