Created
September 29, 2023 14:14
-
-
Save idiotandrobot/5292eb4b87f347598d3fddc46e948258 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#runs-on: windows-latest | |
# steps: | |
# - uses: actions/[email protected] # https://github.com/marketplace/actions/checkout | |
- name: Get Head Commit Message | |
id: get_head_commit | |
shell: pwsh | |
run: | | |
$Message = git log --format=%B -n 1 HEAD | |
Write-Output "title=$($Message | Select -First 1)" >> $Env:GITHUB_OUTPUT | |
Write-Output "body=$($Message | Select -Skip 1)" >> $Env:GITHUB_OUTPUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment