Skip to content

Commit

Permalink
workflow: don't parse commit message
Browse files Browse the repository at this point in the history
Otherwise, multi-line commit messages break GitHub Actions outputs.
  • Loading branch information
lifehackerhansol committed May 12, 2024
1 parent ee13ea5 commit 74b1564
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
author_name: ${{ steps.vars.outputs.author_name }}
committer_name: ${{ steps.vars.outputs.committer_name }}
commit_subject: ${{ steps.vars.outputs.commit_subject }}
commit_message: ${{ steps.vars.outputs.commit_message }}
current_date: ${{ steps.vars.outputs.current_date }}
steps:
- name: Checkout repo
Expand All @@ -40,7 +39,6 @@ jobs:
echo "author_name=$(git log -1 $GITHUB_SHA --pretty=%aN)" >> $GITHUB_OUTPUT
echo "committer_name=$(git log -1 $GITHUB_SHA --pretty=%cN)" >> $GITHUB_OUTPUT
echo "commit_subject=$(git log -1 $GITHUB_SHA --pretty=%s)" >> $GITHUB_OUTPUT
echo "commit_message=$(git log -1 $GITHUB_SHA --pretty=%b)" >> $GITHUB_OUTPUT
CURRENT_DATE=$(date +"%Y%m%d-%H%M%S")
echo "current_date=$CURRENT_DATE" >> $GITHUB_OUTPUT
Expand All @@ -60,7 +58,6 @@ jobs:
AUTHOR_NAME: ${{ needs.build.outputs.author_name }}
COMMITTER_NAME: ${{ needs.build.outputs.committer_name }}
COMMIT_SUBJECT: ${{ needs.build.outputs.commit_subject }}
COMMIT_MESSAGE: ${{ needs.build.outputs.commit_message }}
steps:
- name: Send success webhook
if: ${{ success() }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
author_name: ${{ steps.vars.outputs.author_name }}
committer_name: ${{ steps.vars.outputs.committer_name }}
commit_subject: ${{ steps.vars.outputs.commit_subject }}
commit_message: ${{ steps.vars.outputs.commit_message }}
current_date: ${{ steps.vars.outputs.current_date }}
steps:
- name: Checkout repo
Expand All @@ -35,7 +34,6 @@ jobs:
echo "author_name=$(git log -1 $GITHUB_SHA --pretty=%aN)" >> $GITHUB_OUTPUT
echo "committer_name=$(git log -1 $GITHUB_SHA --pretty=%cN)" >> $GITHUB_OUTPUT
echo "commit_subject=$(git log -1 $GITHUB_SHA --pretty=%s)" >> $GITHUB_OUTPUT
echo "commit_message=$(git log -1 $GITHUB_SHA --pretty=%b)" >> $GITHUB_OUTPUT
CURRENT_DATE=$(date +"%Y%m%d-%H%M%S")
echo "current_date=$CURRENT_DATE" >> $GITHUB_OUTPUT
Expand All @@ -60,7 +58,6 @@ jobs:
AUTHOR_NAME: ${{ needs.build.outputs.author_name }}
COMMITTER_NAME: ${{ needs.build.outputs.committer_name }}
COMMIT_SUBJECT: ${{ needs.build.outputs.commit_subject }}
COMMIT_MESSAGE: ${{ needs.build.outputs.commit_message }}
steps:
- name: Send success webhook
if: ${{ success() }}
Expand Down

0 comments on commit 74b1564

Please sign in to comment.