Use checkout in action

This commit is contained in:
Quinn Casey 2022-05-12 15:36:46 -07:00
parent 6766041328
commit 06e7e40b15

View File

@ -384,14 +384,13 @@ jobs:
- -
name: Checkout name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
ref: main
- -
name: Append Changelog to docs name: Append Changelog to docs
id: append-Changelog id: append-Changelog
working-directory: docs working-directory: docs
run: | run: |
git status
git pull origin main
git checkout main
echo -e "# Changelog\n\n${{ steps.create-release.outputs.body }}\n" > changelog-new.md echo -e "# Changelog\n\n${{ steps.create-release.outputs.body }}\n" > changelog-new.md
CURRENT_CHANGELOG=`tail --lines +2 changelog.md` CURRENT_CHANGELOG=`tail --lines +2 changelog.md`
echo -e "$CURRENT_CHANGELOG" >> changelog-new.md echo -e "$CURRENT_CHANGELOG" >> changelog-new.md