@@ -792,34 +792,56 @@ do-push() {
792792
793793# Step 7: Trigger GitHub Actions build
794794do-build-github () {
795- # Check if gh is available
796- if ! command -v gh & > /dev/null; then
797- echo " ⚠ GitHub CLI (gh) not found"
798- echo " Install it to trigger builds automatically"
799- return 1
800- fi
801-
802- # Get workflow name/ID
803- local workflow_file=" .github/workflows/release.yml"
795+ local workflow_file=" .github/workflows/release-libs.yaml"
796+ local workflow_url=" https://github.com/yaml/yamlstar/actions/workflows/release-libs.yaml"
804797
805798 if [[ ! -f $workflow_file ]]; then
806799 echo " ⚠ No release workflow found at $workflow_file "
807- echo " You may need to trigger the build manually"
808800 return 1
809801 fi
810802
803+ # Check if gh is available
804+ if ! command -v gh & > /dev/null; then
805+ echo " ⚠ GitHub CLI (gh) not found"
806+ echo
807+ echo " Please manually trigger the workflow:"
808+ echo " 1. Go to: $workflow_url "
809+ echo " 2. Click 'Run workflow'"
810+ echo " 3. Enter version: $NEW_VERSION "
811+ echo " 4. Click 'Run workflow' button"
812+ echo " 5. Wait for the workflow to complete successfully"
813+ echo
814+ read -r -p " Press Enter when the GitHub workflow has completed..."
815+ return 0
816+ fi
817+
811818 echo " Triggering GitHub Actions workflow..."
812819
813- if gh workflow run release.yml -f version=" $NEW_VERSION " ; then
820+ if gh workflow run release-libs.yaml -f version=" $NEW_VERSION " 2> /dev/null ; then
814821 echo " ✓ GitHub Actions workflow triggered"
815822 echo
816823 echo " Monitor progress:"
817824 echo " gh run watch"
818- echo " or visit: https://github.com/$( gh repo view --json nameWithOwner -q .nameWithOwner) /actions"
825+ echo " or visit: $workflow_url "
826+ echo
827+ echo " Waiting for workflow to complete..."
828+ if gh run watch --exit-status 2> /dev/null; then
829+ echo " ✓ Workflow completed successfully"
830+ else
831+ echo " ⚠ Could not watch workflow (may need to check manually)"
832+ fi
819833 else
820- echo " ✗ Failed to trigger workflow"
821- echo " You may need to trigger it manually on GitHub"
822- return 1
834+ # Likely a permissions error - fall back to manual trigger
835+ echo " ⚠ Could not trigger workflow via CLI (insufficient permissions)"
836+ echo
837+ echo " Please manually trigger the workflow:"
838+ echo " 1. Go to: $workflow_url "
839+ echo " 2. Click 'Run workflow'"
840+ echo " 3. Enter version: $NEW_VERSION "
841+ echo " 4. Click 'Run workflow' button"
842+ echo " 5. Wait for the workflow to complete successfully"
843+ echo
844+ read -r -p " Press Enter when the GitHub workflow has completed..."
823845 fi
824846}
825847
0 commit comments