some more changes to action for monthly release
@@ -22,31 +22,24 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: "0"
- - name: Create new branch
- run: |
- git checkout -b ${{ env.BRANCH_NAME }}
- name: Semantic release
+ id: semantic-release
run: |
pip install python-semantic-release
git config user.name github-actions
git config user.email github-actions@github.com
- semantic-release version -D branch=${{ env.BRANCH_NAME }}
- semantic-release changelog
+ semantic-release version
+ echo ::set-output name=version::$(semantic-release print-version --current)
+ echo ::set-output name=difflog::$(semantic-release changelog)
- name: Create release pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- commit-message: Create new release
- title: Create new release
+ commit-message: Bumped version to ${{ steps.semantic-release.outputs.version }}
+ title: Bumped version for release ${{ steps.semantic-release.outputs.version }}
author: github-actions <github-actions@github.com>
- body: |
- - Bumped version for new release of FE library.
-
- Auto-generated by [create-pull-request][1]
-
- [1]: https://github.com/peter-evans/create-pull-request
+ body: ${{ steps.semantic-release.outputs.difflog }}
team-reviewers: amundsen-io/amundsen-committers
- branch: master
- base: ${{ env.BRANCH_NAME }}
+ branch: ${{ env.BRANCH_NAME }}
delete-branch: true
signoff: true
