[BOOK-358] feat: 선택 뱃지 추가 및 감상평 화면에서 버튼 항상 활성화 처리 #14
Workflow file for this run
This file contains hidden or 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: Create Release Branch | ||
| # 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 | ||