Skip to content

Commit

Permalink
Fix changes workflow (#1962)
Browse files Browse the repository at this point in the history
* add changes workflow

* Update update-changes.yaml

* Fix changes workflow
  • Loading branch information
dvora-h authored Feb 13, 2022
1 parent c5eafcc commit 857d839
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ jobs:
fetch-depth: 0
- name: Update CHANGES file
run: |
sed -i '1s/^/* ${{ github.event.head_commit.message }}. Thanks @${{ github.actor }}\n/' CHANGES
COMMIT="${{ github.event.head_commit.message }}"
PR_TITLE=`echo "${COMMIT}" | head -n 1`
echo "* ${PR_TITLE}" Thanks @${{ github.actor }} > TMP_CHANGES
cat CHANGES >> TMP_CHANGES
mv TMP_CHANGES CHANGES
- name: Commit & Push changes
uses: actions-js/push@master
with:
Expand Down

0 comments on commit 857d839

Please sign in to comment.