Skip to content

Merge pull request #6 from DorijanH/bugfix/readme-changelog-template #7

Merge pull request #6 from DorijanH/bugfix/readme-changelog-template

Merge pull request #6 from DorijanH/bugfix/readme-changelog-template #7

Workflow file for this run

name: Release
# Triggering the workflow on pushes to main
on:
push:
branches:
- main
jobs:
# Release job
release:
name: Release
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
# Bump version and update changelog
- name: Bump version and update changelog
id: version-bump
uses: ./
with:
should-bump-version: true
# Committing new changes
- name: Commit changes
uses: EndBug/[email protected]
with:
message: "[skip ci] [version-bump] Automated commit for version ${{ steps.version-bump.outputs.bumped-semantic-version }}"
# Update Git tags
- name: Git tags update
run: |
git config user.name github-actions
git config user.email [email protected]
git tag "v${{ steps.version-bump.outputs.bumped-semantic-version }}"
git tag -f "v${{ steps.version-bump.outputs.bumped-major-part }}" "v${{ steps.version-bump.outputs.bumped-semantic-version }}"
git tag -f "v${{ steps.version-bump.outputs.bumped-major-part }}.${{ steps.version-bump.outputs.bumped-minor-part }}" "v${{ steps.version-bump.outputs.bumped-semantic-version }}"
git push -f --tags
# Creating latest release
- name: Create GitHub release
run: gh release create "v${{ steps.version-bump.outputs.bumped-semantic-version }}" -n "${{ steps.version-bump.outputs.new-changes }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}