Skip to content

build: don't let the release.sh cause rebuilds #59

build: don't let the release.sh cause rebuilds

build: don't let the release.sh cause rebuilds #59

name: Develop to Release
on:
push:
branches:
- 'release/**'
jobs:
prepareReleaseBranch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
env:
checkout_token: ${{ secrets.ORG_CI_GITHUB }}
if: ${{ env.checkout_token == '' }}
with:
fetch-depth: 0
submodules: recursive
- uses: actions/checkout@v4
env:
checkout_token: ${{ secrets.ORG_CI_GITHUB }}
if: ${{ env.checkout_token != '' }}
with:
fetch-depth: 0
submodules: recursive
token: ${{ secrets.ORG_CI_GITHUB }}
- name: Check if the submodules are correct
run: |
branch="${{ github.ref_name }}"
./scripts/git/set-submodule-branches.sh --branch "$branch"
./scripts/rust/branch_ancestor.sh
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore(ci): update git submodules"
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: Prepare release branch
labels: |
prepare-release-branch
automated-pr
draft: false
signoff: true
token: ${{ secrets.ORG_CI_GITHUB }}
- name: Approve Pull Request by CI Bot
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
gh pr review ${{ steps.cpr.outputs.pull-request-number }} --approve
env:
GH_TOKEN: ${{ github.token }}
- name: Approve Pull Request by CI User
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 }}