Skip to content

Create Release Candidate #32

Create Release Candidate

Create Release Candidate #32

Workflow file for this run

name: Create Release Candidate
on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true
jobs:
create-release-candidate:
runs-on: ubuntu-latest
steps:
- name: "Create branch: release/${{ github.event.inputs.version }}"
uses: peterjgrainger/action-create-branch@v3.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: release/${{ github.event.inputs.version }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: release/${{ github.event.inputs.version }}
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Update Version
run: ./gradlew updateVersion -Pversion=${{ github.event.inputs.version }}
- name: Update Open Source Licenses
run: ./gradlew licenseReleaseReport
- name: Commit and Push
uses: github-actions-x/commit@v2.9
with:
name: Release Bot
push-branch: release/${{ github.event.inputs.version }}
commit-message: Update version to ${{ github.event.inputs.version }} and update open source licenses
files: gradle.properties app/src/main/assets/open_source_licenses.json
- name: Create Release PR
uses: repo-sync/pull-request@v2
with:
source_branch: release/${{ github.event.inputs.version }}
destination_branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_label: release
pr_assignee: leonlatsch
pr_reviewer: leonlatsch
pr_title: "Release: ${{ github.event.inputs.version }}"
pr_body: |
## Release PR ${{ github.event.inputs.version }}
Release Version ${{ github.event.inputs.version }}
**Checklist BEFOORE release:**
- [ ] Build runs
- [ ] Tests run
- [ ] All Features are working as expected
- [ ] Update works
- [ ] Version was updated by actions bot
**DO NOT SQUASH THE COMMITS!**