post-release ActionA GitHub Action that handles steps necessary to close out a GitHub Release process. This includes:
merge-back-TAGNAME that will:projectVersion or version property in gradle.properties to the next version.prerelease flag from the release & setting the release to the latest GitHub release.Please note that the next version is derived from the provided RELEASE_VERSION using a script that assumes a Semantic Version.
contents: write to create a branch, commit changes to the repository, update the GitHub release to no longer be a pre-release, and update the GitHub release to be the latest.pull-requests: write to open the pull request to merge back changes from the tag. If this permission is not set, a Pull Request will not be created.issues: write if milestone closing is required.RELEASE_VERSION - The version of the release being closed. If not set, it will be derived from the GITHUB_REF, which as part of a release will be the tag name.RELEASE_TAG_PREFIX - The prefix of the release tag. If not set, it will default to v (e.g., v1.0.0).PROPERTY_FILE_NAME - defaults to gradle.properties, the property file containing the version property to updateRELEASE_SCRIPT_PATH - An optional path to a custom shell script that will be executed after the version replacement in property file defined by PROPERTY_FILE_NAME, but prior to commiting the project changes.RELEASE_LATEST - An optional boolean flag to update the GitHub release to be or not to be the latest. If not defined, no update will be performed.RELEASE_PRE_RELEASE - An optional boolean flag to update the GitHub release to be or not to be a pre-release. If not defined, no update will be performed.Basic Usage:
- name: "⚙️ Run post-release" uses: apache/grails-github-actions/post-release@asf
Running a custom script myScript.sh that's checked in under .github/scripts:
- name: "⚙️ Run post-release" uses: apache/grails-github-actions/post-release@asf env: RELEASE_SCRIPT_PATH: '.github/scripts/myScript.sh'