-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42a3ab5
commit 125e8b8
Showing
2 changed files
with
26 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -31,3 +31,29 @@ jobs: | |
body: ${{ steps.tag_version.outputs.changelog }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | ||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
- uses: actions/setup-ruby@v1 | ||
# with: | ||
# ruby-version: '2.6' # Version range or exact version of a Ruby version to use, using semvers version range syntax. | ||
- name: Generate CHANGELOG | ||
env: | ||
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gem install github_changelog_generator | ||
github_changelog_generator -u brsynth -p brs-utils | ||
- name: Commit files | ||
run: | | ||
git config --local user.email "$GITHUB_EMAIL" | ||
git config --local user.name "$GITHUB_USERNAME" | ||
git commit -m "doc(CHANGELOG): update" -a | ||
env: | ||
GITHUB_USERNAME: brsynth | ||
GITHUB_EMAIL: [email protected] | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.ref }} |