-
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.
Generate changelog after pushing tag
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 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 |
---|---|---|
|
@@ -85,23 +85,25 @@ jobs: | |
echo "NEW_VERSION=$NEW_VERSION" >> "$GITHUB_OUTPUT" | ||
echo "GIT_TAG=${{ inputs.package }}-v$NEW_VERSION" >> "$GITHUB_OUTPUT" | ||
- name: Generate changelog | ||
run: | | ||
chmod +x ../../.github/scripts/generate-changelog.sh | ||
./../../.github/scripts/generate-changelog.sh ${{ inputs.package }} ${{ secrets.VA_MOBILE_ROBOT_GITHUB_PAT }} | ||
- name: Commit changes and tag | ||
run: | | ||
git config --global user.name 'VA Automation Bot' | ||
git config --global user.email '[email protected]' | ||
git pull | ||
git add package.json | ||
git add CHANGELOG.md | ||
git commit -m 'Version bump: ${{ steps.bump-version.outputs.GIT_TAG }}' | ||
git push | ||
TAG=${{ steps.bump-version.outputs.GIT_TAG }} | ||
echo $TAG | ||
git tag -a $TAG -m $TAG | ||
git push origin $TAG | ||
- name: Generate changelog | ||
run: | | ||
chmod +x ../../.github/scripts/generate-changelog.sh | ||
./../../.github/scripts/generate-changelog.sh ${{ inputs.package }} ${{ secrets.VA_MOBILE_ROBOT_GITHUB_PAT }} | ||
git add CHANGELOG.md | ||
git commit -m 'Changelog for ${{ steps.bump-version.outputs.GIT_TAG }}' | ||
git push | ||
- name: Post to a Slack channel | ||
id: slack | ||
uses: slackapi/[email protected] | ||
|