From 86f53a54e6fbf5caa48224c0a5401829d55f52ea Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 12 Dec 2023 14:36:31 +0100 Subject: [PATCH] fix(workflows): Correctly use git --- .forgejo/workflows/npins.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/npins.yaml b/.forgejo/workflows/npins.yaml index 8129128..197d286 100644 --- a/.forgejo/workflows/npins.yaml +++ b/.forgejo/workflows/npins.yaml @@ -2,7 +2,7 @@ name: npins update on: schedule: # Run at 11 o'clock every day - - cron: "24 14 * * *" + - cron: "37 14 * * *" jobs: npins_update: @@ -12,8 +12,6 @@ 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: @@ -25,13 +23,9 @@ jobs: - name: Update dependencies and open PR if necessary run: | - cd src - npins update - git diff-index --quiet HEAD - - if [ $? -eq 1 ]; then + if [ ! -z "$(git diff --name-only HEAD)" ]; then echo "[+] Changes detected, pushing updates." git add npins