@@ -45,13 +45,15 @@ runs:
4545 ghcr.io/codeglide/mcpgen:latest
4646
4747 - name : Create PR / Branch
48- if : ${{ inputs.create_pr || inputs.create_branch_and_commit }}
48+ if : ${{ inputs.create_pr == true || inputs.create_branch_and_commit == true }}
4949 shell : bash
5050 id : branch_creation
5151 continue-on-error : true
5252 env :
5353 GH_TOKEN : ${{ github.token }}
5454 run : |
55+ echo "Creating branch and/or PR as requested..."
56+
5557 # Configure git with GitHub Actions identity
5658 git config --global user.name "CodeGlide-[bot]"
5759 git config --global user.email "codeglide-[bot]@users.noreply.github.com"
8688
8789 # Try to create PR if requested
8890 if [[ "${{ inputs.create_pr }}" == "true" ]]; then
91+ echo "Creating pull request..."
8992 PR_URL=$(gh pr create \
9093 --base "${{ github.ref_name }}" \
9194 --head "$BRANCH_NAME" \
@@ -104,6 +107,7 @@ runs:
104107 echo "https://github.com/${{ github.repository }}/compare/${{ github.ref_name }}...$BRANCH_NAME"
105108 fi
106109 else
110+ echo "Branch created successfully (no PR requested)"
107111 echo "To create a PR manually, visit:"
108112 echo "https://github.com/${{ github.repository }}/compare/${{ github.ref_name }}...$BRANCH_NAME"
109113 fi
@@ -114,10 +118,10 @@ runs:
114118 exit 1
115119 fi
116120
117- - name : Upload MCP Server
118- if : ${{ ! inputs.create_pr && ! inputs.create_branch_and_commit || (steps.branch_creation.outputs.success != 'true') }}
121+ - name : Upload MCP Server as Artifact
122+ if : ${{ ( inputs.create_pr != true && inputs.create_branch_and_commit != true) || (steps.branch_creation.outputs.success != 'true') }}
119123 uses : actions/upload-artifact@v4
120124 with :
121- name : generated-mcp
122- path : generated-mcp/
125+ name : generated-mcp-server
126+ path : generated-mcp/
123127
0 commit comments