fix(workflows): Correctly use git
Some checks failed
npins update / npins_update (push) Failing after 4m42s
Some checks failed
npins update / npins_update (push) Failing after 4m42s
This commit is contained in:
parent
85c60fb593
commit
86f53a54e6
1 changed files with 2 additions and 8 deletions
|
@ -2,7 +2,7 @@ name: npins update
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Run at 11 o'clock every day
|
# Run at 11 o'clock every day
|
||||||
- cron: "24 14 * * *"
|
- cron: "37 14 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
npins_update:
|
npins_update:
|
||||||
|
@ -12,8 +12,6 @@ jobs:
|
||||||
run: apt-get update && apt-get install sudo
|
run: apt-get update && apt-get install sudo
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
path: src
|
|
||||||
|
|
||||||
- uses: https://github.com/cachix/install-nix-action@v22
|
- uses: https://github.com/cachix/install-nix-action@v22
|
||||||
with:
|
with:
|
||||||
|
@ -25,13 +23,9 @@ jobs:
|
||||||
|
|
||||||
- name: Update dependencies and open PR if necessary
|
- name: Update dependencies and open PR if necessary
|
||||||
run: |
|
run: |
|
||||||
cd src
|
|
||||||
|
|
||||||
npins update
|
npins update
|
||||||
|
|
||||||
git diff-index --quiet HEAD
|
if [ ! -z "$(git diff --name-only HEAD)" ]; then
|
||||||
|
|
||||||
if [ $? -eq 1 ]; then
|
|
||||||
echo "[+] Changes detected, pushing updates."
|
echo "[+] Changes detected, pushing updates."
|
||||||
|
|
||||||
git add npins
|
git add npins
|
||||||
|
|
Loading…
Reference in a new issue