From cac6e9702eb3f9533ce70d58731c0a398da96ea3 Mon Sep 17 00:00:00 2001 From: Petar Kirov Date: Mon, 6 May 2024 18:16:21 +0300 Subject: [PATCH] ci(gh-actions/update-flake-lock): Gracefully handle the case where all flake inputs are up to date --- .github/workflows/update-flake-lock.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml index d24065d..a408e32 100644 --- a/.github/workflows/update-flake-lock.yml +++ b/.github/workflows/update-flake-lock.yml @@ -32,11 +32,12 @@ jobs: private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Create Pull Request + if: ${{ hashFiles('commit_msg_body.txt') != '' }} uses: peter-evans/create-pull-request@v6 with: token: ${{ steps.generate-token.outputs.token }} title: 'Update Nix Flake lockfile' - body-path: ./commit_msg_body.txt + body-path: commit_msg_body.txt branch: 'create-pull-request/update-flake-lockfile' delete-branch: true branch-suffix: timestamp