[DiffTrain] Use original commit message (#25809)
Instead of the current commit message (which just shows "Build for <sha>", re-use the commit message from the origin commit instead.
lauren committed
Dec 5, 2022 at 10:56 UTC
cd23e40c734d758726419c0a3bd91576211bd83f
1 file changed
+4
-1
.github/workflows/commit_artifacts.yml
+4
-1
@@ -146,7 +146,10 @@ jobs:
146
- name: Commit changes to branch
147
uses: stefanzweifel/git-auto-commit-action@v4
148
with:
149
- commit_message: Build for ${{ github.sha }}
149
+ commit_message: |
150
+ ${{ github.event.head_commit.message }}
151
+
152
+ DiffTrain build for `${{ github.sha }}`
153
branch: builds/facebook-www
154
commit_user_name: ${{ github.actor }}
155
commit_user_email: ${{ github.actor }}@users.noreply.github.com