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:
|
2024-01-28 09:30:32 -05:00
|
|
|
name: bump tag version and release
|
2024-01-27 22:58:03 -05:00
|
|
|
if: github.event.pull_request.merged == true
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2024-01-28 09:30:32 -05:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: ${{ github.sha }} ## this seems to be required due to https://github.com/anothrNick/github-tag-action/issues/266
|
|
|
|
fetch-depth: 0
|
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
|
2024-01-28 09:36:11 -05:00
|
|
|
RELEASE_BRANCHES: rolling
|
2024-01-28 09:44:56 -05:00
|
|
|
DEFAULT_BRANCH: rolling
|
|
|
|
pre_release: false
|
2024-01-28 09:46:57 -05:00
|
|
|
PRERELEASE_SUFFIX: ''
|
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
|
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:
|
2024-01-28 09:30:32 -05:00
|
|
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
2024-01-28 00:27:44 -05:00
|
|
|
|