Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Workflow file for this run

name: Create RC branches
on:
workflow_dispatch:
inputs:
version:
description: The release version in v*.*.* format
required: true
push:
branches:
- rc-test4
jobs:
build:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.inputs.version }}
RC_BRANCH: 'new_branch'
steps:
- name: Check out Everest Backend
uses: actions/checkout@v4
with:
path: ./backend
ref: 'main'
- name: Create and update Everest Backend RC-branch
run: |
cd backend
# Check if the branch already exists
git fetch
check_branch=$(git ls-remote --heads origin ${RC_BRANCH})
if [[ -z ${check_branch} ]]; then
git checkout -b $RC_BRANCH
# update tag refs in scripts
sed -i "s/dev-latest/$RC_BRANCH/g" deploy/quickstart-compose.yml deploy/quickstart-k8s.yaml
# configure userdata for commits
git config --global user.email "[email protected]"
git config --global user.name "Everest RC CI triggered by ${{ github.actor }}"
# commit and push the updated files
git commit -a -m "update version tag"
git push origin $RC_BRANCH
fi