-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #355 from Chia-Network/auto-changelog
Auto changelog
- Loading branch information
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,11 @@ jobs: | |
- uses: Chia-Network/actions/clean-workspace@main | ||
|
||
- name: Checkout current branch | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
# Need REPO_ADMIN token so when the tag is created, the tag automation runs | ||
token: ${{ secrets.REPO_ADMIN }} | ||
fetch-depth: 0 | ||
|
||
- name: Check for current version tag. Create if it doesn't exist | ||
run: | | ||
|
@@ -32,6 +33,12 @@ jobs: | |
echo "Tag exists, nothing to do" | ||
else | ||
echo "Tag does not exist. Creating and pushing tag" | ||
git tag "$version" | ||
git push origin "$version" | ||
npx standard-version | ||
git add CHANGELOG.md | ||
git config --global user.name 'ChiaAutomation' | ||
git config --global user.email '[email protected]' | ||
git commit -m "Updating changelog for $version" | ||
git tag $version | ||
git push origin $version | ||
git push origin main | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters