Files
spring-pulsar/.github/workflows/prepare-release.yml
dependabot[bot] 6cda41c063 Bump the development-dependencies group with 5 updates (#695)
Bumps the development-dependencies group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `3` | `4` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `3` | `4` |
| [spring-io/spring-doc-actions](https://github.com/spring-io/spring-doc-actions) | `0.0.13` | `0.0.17` |
| [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) | `1.19.0` | `1.26.0` |
| [github/codeql-action](https://github.com/github/codeql-action) | `2` | `3` |


Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

Updates `actions/upload-artifact` from 3 to 4
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

Updates `spring-io/spring-doc-actions` from 0.0.13 to 0.0.17
- [Commits](https://github.com/spring-io/spring-doc-actions/compare/v0.0.13...v0.0.17)

Updates `slackapi/slack-github-action` from 1.19.0 to 1.26.0
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.19.0...v1.26.0)

Updates `github/codeql-action` from 2 to 3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: development-dependencies
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: development-dependencies
- dependency-name: spring-io/spring-doc-actions
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: development-dependencies
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: development-dependencies
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: development-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-29 16:42:22 -05:00

59 lines
1.9 KiB
YAML

name: Prepare Release Version
on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'Version to release'
required: true
type: string
permissions:
contents: read
jobs:
update_release_version:
name: Initiate Release
if: github.repository == 'spring-projects/spring-pulsar'
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- id: checkout-source
name: Checkout source code
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
- name: Set up Gradle
uses: spring-io/spring-gradle-build-action@v2
- id: check-open-issues
name: Check for open issues
run: |
echo "TODO actually check for open issues"
echo "is_open_issues=false" >> $GITHUB_OUTPUT
- id: validate-release-state
name: Validate release state
if: steps.check-open-issues.outputs.is_open_issues == 'true'
run: |
echo "There are open issues"
exit 1
- id: update-version-and-push
name: Update version and push
if: steps.check-open-issues.outputs.is_open_issues == 'false'
env:
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
releaseVersion="${{ inputs.releaseVersion }}"
releaseBranch="release-initiate/$releaseVersion"
git checkout -b $releaseBranch
./gradlew :updateToReleaseVersion -PreleaseVersion=$releaseVersion
git commit -am "[Release $releaseVersion] Update version"
git push origin $releaseBranch
gh pr create --title "[Release $releaseVersion] Update version" --body "Merge to initiate release."