Skip to content

Commit 820f37a

Browse files
authored
chore: use semantic PR title for flake update workflow (#453)
1 parent 8ff8579 commit 820f37a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/update.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ jobs:
1717
git config --global user.name "github-actions[bot]"
1818
- name: Update
1919
run: nix flake update --commit-lock-file
20+
- name: Get update details
21+
id: update-details
22+
run: |
23+
body=$(git log -1 --pretty=%B)
24+
echo "body<<EOF" >> "$GITHUB_OUTPUT"
25+
echo "$body" >> "$GITHUB_OUTPUT"
26+
echo "EOF" >> "$GITHUB_OUTPUT"
2027
2128
- uses: peter-evans/create-pull-request@v7
2229
id: create-pr
2330
with:
2431
branch: gh/update-flake
25-
title: Update flake inputs
26-
body: |
27-
Automatic update of flake inputs
32+
title: "chore: update flake inputs"
33+
body: ${{ steps.update-details.outputs.body }}
2834
# Use a PAT so that Workflows run on the created PR
2935
token: ${{ secrets.CREATE_PR_TOKEN }}
3036
- if: ${{ steps.create-pr.outputs.pull-request-number }}

0 commit comments

Comments
 (0)