From 69b187e2be5c7f4c65253cefd5ca351861f6e765 Mon Sep 17 00:00:00 2001 From: m-brl <103381146+m-brl@users.noreply.github.com> Date: Sun, 14 Jun 2026 08:59:42 +0200 Subject: [PATCH] evol(release CI): centralise CI release pipeline Signed-off-by: m-brl <103381146+m-brl@users.noreply.github.com> --- .github/workflows/release.yml | 51 +++-------------------------------- 1 file changed, 4 insertions(+), 47 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4b56ad..5875d91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Create release +name: Trigger Release on: workflow_dispatch: @@ -8,51 +8,8 @@ on: required: true type: string -permissions: - contents: write - pull-requests: write - jobs: create-release: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: dev - fetch-depth: 0 - - - name: Configure Git - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - - - name: Create Release Branch - run: | - git checkout -b release/${{ inputs.version }} - - echo "${{ inputs.version }}" > version.txt - - git add version.txt - git commit -m "Migrating to ${{ inputs.version }}" - git push origin release/${{ inputs.version }} - - - name: Create PR to Master - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh pr create \ - --title "Release ${{ inputs.version }} -> Master" \ - --body "Merge release ${{ inputs.version }} to master." \ - --base master \ - --head release/${{ inputs.version }} - - - name: Create PR to Develop - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh pr create \ - --title "Release ${{ inputs.version }} -> Dev" \ - --body "Merge release ${{ inputs.version }} to dev." \ - --base dev \ - --head release/${{ inputs.version }} + uses: Sentience-Robotics/.github/.github/workflows/release.yaml@master + with: + version: ${{ inputs.version }}