Skip to content

Release 1.0.2

Release 1.0.2 #4

name: Post Release PR Merge
on:
pull_request:
types: [ closed ]
jobs:
release_merge:
if: github.head_ref == 'release/next' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Git - Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.RELEASE_ACCESS_TOKEN }}
- name: Install cz
run: pip install --user -U Commitizen
- name: Record release version
run: |
echo "RELEASE_VERSION=$(cz version --project)" >> $GITHUB_ENV
- name: Tag release
run: |
git tag $RELEASE_VERSION
git push origin $RELEASE_VERSION
- name: Record changelog for current release
run: cz changelog $RELEASE_VERSION --file-name="release.md"
- name: Create release
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
with:
name: "Release ${{ env.RELEASE_VERSION }}"
tag: ${{ env.RELEASE_VERSION }}
bodyFile: "release.md"