2024-01-27 22:58:03 -05:00
|
|
|
name: Bump release version
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [rolling]
|
|
|
|
types:
|
|
|
|
- closed
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
concurrency: production
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Create Release
|
|
|
|
if: github.event.pull_request.merged == true
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2024-01-28 02:13:45 -05:00
|
|
|
- name: 'Automated Version Bump'
|
|
|
|
id: version-bump
|
2024-01-28 02:27:59 -05:00
|
|
|
uses: anothrNick/github-tag-action@1.36.0
|
2024-01-28 02:13:45 -05:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2024-01-28 02:27:59 -05:00
|
|
|
WITH_V: true
|
|
|
|
DEFAULT_BUMP: patch
|
2024-01-28 09:18:02 -05:00
|
|
|
PRERELEASE: false
|
|
|
|
DEFAULT_BRANCH: rolling
|
2024-01-28 02:13:45 -05:00
|
|
|
- name: Changelog
|
|
|
|
uses: scottbrenner/generate-changelog-action@master
|
|
|
|
id: Changelog
|
|
|
|
env:
|
|
|
|
REPO: ${{ github.repository }}
|
|
|
|
- name: Create Release
|
2024-01-28 09:18:02 -05:00
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
2024-01-28 02:13:45 -05:00
|
|
|
with:
|
2024-01-28 09:18:02 -05:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
generate_release_notes: true
|
|
|
|
name: ${{ steps.version-bump.outputs.new_tag }}
|
2024-01-28 02:27:59 -05:00
|
|
|
tag_name: ${{ steps.version-bump.outputs.new_tag }}
|
2024-01-28 02:13:45 -05:00
|
|
|
prerelease: false
|
2024-01-28 09:18:02 -05:00
|
|
|
env:
|
|
|
|
GITHUB_REPOSITORY: my_gh_org/my_gh_repo
|
2024-01-28 00:27:44 -05:00
|
|
|
|