Skip to content

Commit

Permalink
Update method for storing commit messages in GitHub Actions
Browse files Browse the repository at this point in the history
We simplified the way commit messages are stored in the GitHub Action for the PHP workflow. Now, instead of echoing the messages to the environment file line by line, we assign them directly to the "COMMIT_MESSAGES" variable in a single line.
  • Loading branch information
MarjovanLier committed Jan 12, 2024
1 parent d3a351b commit 315c948
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ jobs:
if: github.ref == 'refs/heads/main' && steps.rector.outcome == 'success'
run: |
COMMIT_MESSAGES=$(git log $LATEST_TAG..HEAD --pretty=format:"%h - %s")
echo "COMMIT_MESSAGES<<EOF" >> $GITHUB_ENV
echo "$COMMIT_MESSAGES" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "COMMIT_MESSAGES=$COMMIT_MESSAGES" >> $GITHUB_ENV
- name: Create release
id: create_release
Expand Down

0 comments on commit 315c948

Please sign in to comment.