Skip to content

Commit

Permalink
Try getting commit message from file.
Browse files Browse the repository at this point in the history
  • Loading branch information
okamsn committed Mar 8, 2024
1 parent eeebd27 commit 3cf4375
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/automatic-pr-to-dash-copy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
branches:
- main
- master
pull_request:
branches:
- main
- master

permissions:
contents: write
Expand All @@ -20,6 +24,13 @@ jobs:
with:
ref: loopy-dash-only
path: loopy-dash
- name: Copy commit message
run: |
cd loopy
git log \
--format='(GitHub Action) %s%n%nCommit: %H%nAuthor: %an <%ae>%nDate: %ai%n%n%B' \
-n 1 --no-color --encoding=utf8 HEAD > ../commit-msg.txt
cd ..
- name: Copy file to directory
run: cp loopy/loopy-dash.el loopy-dash/loopy-dash.el
- name: Commit new changes and push.
Expand All @@ -28,7 +39,7 @@ jobs:
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add --force loopy-dash.el
git commit --allow-empty -m "Automatic commit of changes from master branch."
git commit --allow-empty -F ../commit-msg.txt
git push
env:
USERNAME: github-actions[bot]

0 comments on commit 3cf4375

Please sign in to comment.