You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "No changes to package.json, skipping PR creation"
230
-
exit 0
231
-
fi
232
-
233
-
# Create new branch
234
-
git checkout -b "$BRANCH_NAME"
235
-
236
-
# Add and commit changes
237
-
git add package.json
238
-
git commit -m "chore: update cli-version to $CLI_VERSION and cli-packages array
239
-
240
-
- Updated cli-version to $CLI_VERSION
241
-
- Updated cli-packages array with available package files
242
-
243
-
This PR was automatically created by the CLI release workflow to keep the root package.json in sync with the CLI version from pyproject.toml."
244
-
245
-
# Push branch
246
-
git push origin "$BRANCH_NAME"
247
-
248
-
# Create PR (only if branch doesn't exist)
249
-
if ! gh pr list --head "$BRANCH_NAME" --json number --jq '. | length' | grep -q "0"; then
250
-
echo "PR already exists for branch $BRANCH_NAME"
251
-
exit 0
252
-
fi
253
-
254
-
gh pr create \
255
-
--title "chore: update cli-version to $CLI_VERSION" \
256
-
--body "This PR updates the \`cli-version\` field and \`cli-packages\` array in the root package.json to match the current CLI version ($CLI_VERSION) from the pyproject.toml file.
257
-
258
-
**Changes:**
259
-
- Updated \`cli-version\` field to \`$CLI_VERSION\`
260
-
- Updated \`cli-packages\` array with available package files
261
-
262
-
**Available Packages:**
263
-
$(jq -r '.["cli-packages"][]' package.json | sed 's/^/- /')
264
-
265
-
**Download URLs:**
266
-
$(jq -r '.["cli-packages"][]' package.json | sed "s|^|- https://github.com/raghavyuva/nixopus/releases/download/nixopus-$CLI_VERSION/|")
267
-
268
-
This PR was automatically created by the CLI release workflow." \
269
-
--base master \
270
-
--head "$BRANCH_NAME" || echo "Failed to create PR, but continuing with release"
commit-message: "chore: update cli-version to ${{ needs.build-and-package.outputs.version }} and cli-packages array"
227
+
title: "chore: update cli-version to ${{ needs.build-and-package.outputs.version }}"
228
+
body: |
229
+
This PR updates the `cli-version` field and `cli-packages` array in the root package.json to match the current CLI version (${{ needs.build-and-package.outputs.version }}) from the pyproject.toml file.
230
+
231
+
**Changes:**
232
+
- Updated `cli-version` field to `${{ needs.build-and-package.outputs.version }}`
233
+
- Updated `cli-packages` array with available package files
234
+
235
+
This PR was automatically created by the CLI release workflow.
0 commit comments