From 4b9e5495a616b2a9f41698ec6fe6ba2ff84829ac Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sun, 29 Sep 2024 06:37:43 -0400 Subject: [PATCH 1/3] chore(deps): fix pr title, body and label of flake.lock updater --- .github/workflows/update-nix-flakes.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-nix-flakes.yml b/.github/workflows/update-nix-flakes.yml index 55a3c36dd361..fe9a3905c535 100644 --- a/.github/workflows/update-nix-flakes.yml +++ b/.github/workflows/update-nix-flakes.yml @@ -2,7 +2,7 @@ name: update-flake-lock on: workflow_dispatch: schedule: - - cron: "0 0 * * 0" # once a week + - cron: "0 0 * * 0" # once a week on Sunday at midnight jobs: lockfile: @@ -24,3 +24,6 @@ jobs: with: token: ${{ steps.generate-token.outputs.token }} commit-msg: "chore(deps): update `flake.lock`" + pr-title: "chore(deps): update `flake.lock`" + pr-body: Automated `flake.lock` updates. + pr-labels: dependencies,nix From 8bc4b0d9a5b6e86e3597f791bfcee6d83f976978 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sun, 29 Sep 2024 06:39:21 -0400 Subject: [PATCH 2/3] chore(deps): keep commit msg body --- .github/workflows/update-nix-flakes.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-nix-flakes.yml b/.github/workflows/update-nix-flakes.yml index fe9a3905c535..218d95b1ebda 100644 --- a/.github/workflows/update-nix-flakes.yml +++ b/.github/workflows/update-nix-flakes.yml @@ -25,5 +25,10 @@ jobs: token: ${{ steps.generate-token.outputs.token }} commit-msg: "chore(deps): update `flake.lock`" pr-title: "chore(deps): update `flake.lock`" - pr-body: Automated `flake.lock` updates. pr-labels: dependencies,nix + pr-body: | + Automated `flake.lock` updates. + + ``` + {{ env.GIT_COMMIT_MESSAGE }} + ``` From 63bdbe584a5013c6333a2021a19bfd9d1f63a6e6 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sun, 29 Sep 2024 06:43:12 -0400 Subject: [PATCH 3/3] chore(deps): branch name style --- .github/workflows/update-nix-flakes.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-nix-flakes.yml b/.github/workflows/update-nix-flakes.yml index 218d95b1ebda..4e2c5258119b 100644 --- a/.github/workflows/update-nix-flakes.yml +++ b/.github/workflows/update-nix-flakes.yml @@ -24,6 +24,7 @@ jobs: with: token: ${{ steps.generate-token.outputs.token }} commit-msg: "chore(deps): update `flake.lock`" + branch: update-flake-lock-action pr-title: "chore(deps): update `flake.lock`" pr-labels: dependencies,nix pr-body: |