File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,9 @@ jobs:
252
252
git config --global user.email "${{ format('{0}@users.noreply.github.com', github.triggering_actor) }}"
253
253
git config --global user.name "${{ github.triggering_actor }}"
254
254
255
- git commit -m "$(git show --no-patch --pretty=format:'%B%n%nDiffTrain build for [${{ github.event.workflow_run.head_sha || github.sha }}](https://github.com/facebook/react/commit/${{ github.event.workflow_run.head_sha || github.sha}})')" || echo "No changes to commit"
255
+ git commit -m "$(git show ${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }} --no-patch --pretty=format:'%B%n%nDiffTrain build for [${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }}](https://github.com/facebook/react/commit/${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha}})')" || echo "No changes to commit"
256
+ env :
257
+ COMMIT_MSG : ${{ github.event.workflow_run.head_commit.message }}
256
258
- name : Push changes to branch
257
259
if : inputs.dry_run == false && (inputs.force == true || steps.check_should_commit.outputs.should_commit == 'true')
258
260
run : git push
@@ -417,7 +419,7 @@ jobs:
417
419
git config --global user.email "${{ format('{0}@users.noreply.github.com', github.triggering_actor) }}"
418
420
git config --global user.name "${{ github.triggering_actor }}"
419
421
420
- git commit -m "$(git show --no-patch --pretty=format:'%B%n%nDiffTrain build for [${{ github.event.workflow_run.head_sha || github.sha }}](https://github.com/facebook/react/commit/${{ github.event.workflow_run.head_sha || github.sha}})')" || echo "No changes to commit"
422
+ git commit -m "$(git show ${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }} --no-patch --pretty=format:'%B%n%nDiffTrain build for [${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha }}](https://github.com/facebook/react/commit/${{ inputs.commit_sha || github.event.workflow_run.head_sha || github.sha}})')" || echo "No changes to commit"
421
423
- name : Push changes to branch
422
424
if : inputs.dry_run == false && (inputs.force == true || steps.check_should_commit.outputs.should_commit == 'true')
423
425
run : git push
You can’t perform that action at this time.
0 commit comments