Skip to content

Commit fc9263c

Browse files
committed
feat: restore nix flake output in the commit description
Signed-off-by: andrea11 <[email protected]>
1 parent 8315a03 commit fc9263c

File tree

7 files changed

+29719
-29708
lines changed

7 files changed

+29719
-29708
lines changed

action.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ inputs:
3434
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.
3535
3636
```
37-
{{ env.GIT_COMMIT_MESSAGE }}
37+
{{ env.FLAKE_UPDATE_OUTPUT }}
3838
```
3939
4040
### Running GitHub Actions on this PR
@@ -178,16 +178,6 @@ runs:
178178
path: pr_body.template
179179
contents: ${{ inputs.pr-body }}
180180
env: {}
181-
- name: Set additional env variables (GIT_COMMIT_MESSAGE)
182-
shell: bash
183-
env:
184-
COMMIT_MESSAGE: ${{ inputs.commit-msg }}
185-
run: |
186-
DELIMITER=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
187-
echo "GIT_COMMIT_MESSAGE<<$DELIMITER" >> $GITHUB_ENV
188-
echo "$COMMIT_MESSAGE" >> $GITHUB_ENV
189-
echo "$DELIMITER" >> $GITHUB_ENV
190-
echo "GIT_COMMIT_MESSAGE is: ${COMMIT_MESSAGE}"
191181
- name: Interpolate PR Body
192182
uses: pedrolamas/handlebars-action@2995d7eadacbc8f2f6ab8431a01d84a5fa3b8bb4 # v2.4.0
193183
with:
@@ -211,7 +201,10 @@ runs:
211201
base: ${{ inputs.base }}
212202
branch: ${{ inputs.branch }}
213203
delete-branch: true
214-
commit-message: ${{ env.GIT_COMMIT_MESSAGE }}
204+
commit-message: |
205+
${{ inputs.commit-msg }}
206+
207+
${{ env.FLAKE_UPDATE_OUTPUT }}
215208
committer: ${{ env.GIT_COMMITTER_NAME }} ${{ env.GIT_COMMITTER_EMAIL }}
216209
author: ${{ env.GIT_AUTHOR_NAME }} ${{ env.GIT_AUTHOR_EMAIL }}
217210
title: ${{ inputs.pr-title }}

0 commit comments

Comments
 (0)