From 35cb0de3dd864e0766a98d100c633af3a4e46fcf Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Wed, 27 Sep 2023 11:51:15 +0300 Subject: [PATCH] Check if config was updated --- .gitea/workflows/update-flake-lock.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/update-flake-lock.yml b/.gitea/workflows/update-flake-lock.yml index 1781cf1..852f6fe 100644 --- a/.gitea/workflows/update-flake-lock.yml +++ b/.gitea/workflows/update-flake-lock.yml @@ -21,9 +21,17 @@ jobs: github_access_token: ${{ secrets.GH_ACCESS_TOKEN }} - name: Update nix flake lockfile run: | - git status nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update git status + - name: Verify Changed files + uses: tj-actions/verify-changed-files@v16 + id: verify-changed-files + with: + files: | + flake.lock + - name: Run step only when any of the above files change. + if: steps.verify-changed-files.outputs.files_changed == 'true' + run: | git diff git config --global user.name "Gitea Bot" git config --global user.email "gitea@xaked.com"