Skip to content

[BOOK-365] fix: resolve DI violation #32

[BOOK-365] fix: resolve DI violation

[BOOK-365] fix: resolve DI violation #32

name: Create Release Branch

Check failure on line 1 in .github/workflows/create_release_branch.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/create_release_branch.yaml

Invalid workflow file

(Line: 1, Col: 1): Required property is missing: jobs
# on:
# release:
# types: [published]
# workflow_dispatch:
# inputs:
# tag:
# description: 'Tag name (e.g., v1.0.0)'
# required: true
# type: string
# jobs:
# create-branch:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# ref: develop
# fetch-depth: 0
# - name: Fetch all tags
# run: git fetch --all --tags
# - name: Extract tag name
# id: tag
# run: |
# if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
# TAG_NAME="${{ inputs.tag }}"
# else
# TAG_NAME=${GITHUB_REF#refs/tags/}
# fi
# echo "tag=${TAG_NAME}" >> $GITHUB_OUTPUT
# echo "branch=release/${TAG_NAME}" >> $GITHUB_OUTPUT
# - name: Verify tag exists
# run: |
# if ! git rev-parse "${{ steps.tag.outputs.tag }}" >/dev/null 2>&1; then
# echo "Error: Tag ${{ steps.tag.outputs.tag }} does not exist"
# exit 1
# fi
# echo "Tag ${{ steps.tag.outputs.tag }} exists"
# - name: Check if branch already exists
# id: check
# run: |
# if git ls-remote --heads origin "${{ steps.tag.outputs.branch }}" | grep -q "${{ steps.tag.outputs.branch }}"; then
# echo "exists=true" >> $GITHUB_OUTPUT
# echo "Branch ${{ steps.tag.outputs.branch }} already exists - skipping"
# else
# echo "exists=false" >> $GITHUB_OUTPUT
# fi
# - name: Create release branch from develop
# if: steps.check.outputs.exists == 'false'
# run: |
# git config user.name "github-actions[bot]"
# git config user.email "github-actions[bot]@users.noreply.github.com"
# git checkout develop
# git pull origin develop
# git checkout -b ${{ steps.tag.outputs.branch }}
# git push origin ${{ steps.tag.outputs.branch }}
# - name: Summary
# run: |
# if [ "${{ steps.check.outputs.exists }}" = "true" ]; then
# echo "Branch ${{ steps.tag.outputs.branch }} already exists - skipped"
# else
# echo "Created branch: ${{ steps.tag.outputs.branch }} from develop"
# fi