ci(action): test release workflow 2 #14
Workflow file for this run
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
# On pushing to a new release branch auto version bump is | |
# performed from latest release, changelog modified, | |
# versions modified (cocogitto) and a pull request | |
# for merging into main is created | |
name: CI/CD Release | |
on: | |
push: | |
branches: | |
- 'release/*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Conventional commits check | |
uses: oknozor/cocogitto-action@v3 | |
with: | |
check-latest-tag-only: true | |
- name: Generate release version | |
id: release | |
run: | | |
VERSION=$(cog bump --dry-run --auto) | |
echo "version=$VERSION" >> "$GITHUB_OUTPUT" | |
- name: Auto bump version and commit | |
run: | | |
cog bump --auto | |
git push origin "release/${{ steps.release.outputs.version }}" | |
git push origin "${{ steps.release.outputs.version }}" |