Create release branch for 1.11.9 #83
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create release branch | |
| run-name: Create release branch for ${{ inputs.release_branch_name }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| release_branch_name: | |
| description: "Release branch name" | |
| required: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| create-release-branch: | |
| name: Create release branch ${{ inputs.release_branch_name }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| - name: Update application version | |
| working-directory: charts/hybrid-ingestion-runner | |
| env: | |
| NEW_VERSION: ${{ inputs.release_branch_name }} | |
| run: | | |
| old_version=$(cat ../../.version) | |
| # update flat version file and README | |
| echo "$NEW_VERSION" > ../../.version | |
| sed -i "s/$old_version/$NEW_VERSION/g" ../../README.md | |
| export ingestion_image_version="om-$NEW_VERSION-cl-$NEW_VERSION" | |
| # update Helm chart version and appVersion | |
| yq eval -i '.version = strenv(NEW_VERSION)' Chart.yaml | |
| yq eval -i '.appVersion = strenv(NEW_VERSION)' Chart.yaml | |
| # update image tags in values.yaml | |
| yq eval -i '.image.tag = strenv(NEW_VERSION)' values.yaml | |
| yq eval -i '.config.ingestionPods.tag = strenv(ingestion_image_version)' values.yaml | |
| - name: Create pull request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| title: 'chore(release): Prepare ${{ inputs.release_branch_name }} release' | |
| body: | | |
| - Update application version to `${{ inputs.release_branch_name }}` | |
| branch: "release/${{ inputs.release_branch_name }}" | |
| commit-message: 'chore(release): Prepare Branch for release ${{ inputs.release_branch_name }}' |