test: test #80
Workflow file for this run
This file contains 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: Develop to Release | |
on: | |
push: | |
branches: | |
- 'release/**' | |
jobs: | |
prepareReleaseBranch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v22 | |
- name: Pre-populate nix-shell | |
run: | | |
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r) | |
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV | |
nix-shell --pure --run "echo" ./scripts/helm/shell.nix | |
- name: Check if the chart is publishable | |
run: | | |
branch="${{ github.ref_name }}" | |
nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --check-chart "$branch" --develop-to-release" ./scripts/helm/shell.nix | |
- name: Check if the submodules are correct | |
run: | | |
branch="${{ github.ref_name }}" | |
./scripts/git/set-submodule-branches.sh --branch "$branch" | |
- name: Update the Chart Readme.md | |
run: nix-shell ./scripts/helm/shell.nix --pure --run "SKIP_GIT=1 ./scripts/helm/generate-readme.sh" | |
- name: Update the Chart images | |
run: | | |
nix-shell ./scripts/helm/shell.nix --pure --run "./scripts/helm/images.sh generate --dependency-update" | |
nix-shell ./scripts/helm/shell.nix --pure --run "./scripts/helm/images.sh patch" | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: "chore(ci): update helm chart versions and/or git submodules" | |
committer: GitHub <[email protected]> | |
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | |
title: Prepare release branch | |
labels: | | |
prepare-release-branch | |
automated-pr | |
draft: false | |
signoff: true | |
token: ${{ github.token }} | |
- name: Approve Pull Request by CI User 1 | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve | |
env: | |
GH_TOKEN: ${{ secrets.ORG_CI_GITHUB }} | |
- name: Approve Pull Request by CI User 2 | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve | |
env: | |
GH_TOKEN: ${{ secrets.ORG_CI_GITHUB_2 }} | |
- name: Bors Merge Pull Request | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
gh pr comment ${{ steps.cpr.outputs.pull-request-number }} --body "bors merge" | |
env: | |
GH_TOKEN: ${{ secrets.ORG_CI_GITHUB }} |