Skip to content

Commit

Permalink
Make a zero byte file if changelog not present
Browse files Browse the repository at this point in the history
  • Loading branch information
BasieBrinkie authored Jan 7, 2022
1 parent e6d4ff7 commit e2669ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Save Changelog to Repo
run: |
touch CHANGELOG.md
mv CHANGELOG.md CHANGELOG_OLD.md
echo "## (Test text 2)" > CHANGELOG.md
echo "${{ steps.changelog.outputs.changelog }}" >> CHANGELOG.md
cat CHANGELOG_OLD.md >> CHANGELOG.md
git config --global user.name 'CI Workflow'
git config --global user.email 'jjooss@live.nl'
git config --global user.email 'noreply@nourl.com'
git add CHANGELOG.md
git commit -am "Update CHANGELOG.md"
git push
Expand Down

0 comments on commit e2669ed

Please sign in to comment.