Skip to content

Commit cd8a9d3

Browse files
committed
Trigger deploy too
1 parent 2bc2314 commit cd8a9d3

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/update-prerelease-reference.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
# --- Create PR ---
118118

119119
- name: Create branch and PR
120+
id: create-pr
120121
if: steps.should-update.outputs.update == 'true'
121122
env:
122123
GH_TOKEN: ${{ github.token }}
@@ -132,19 +133,18 @@ jobs:
132133
git commit -m "Update reference pages for v${version}"
133134
git push origin "$branch"
134135
135-
gh pr create \
136+
pr_url=$(gh pr create \
136137
--base prerelease \
137138
--head "$branch" \
138139
--title "Update reference pages for v${version}" \
139140
--body "$(cat <<EOF
140141
Automated update of reference documentation for Quarto prerelease v${version}.
141142
142-
## Changes
143-
- Format/cell/project reference JSON files (from \`tools/reference.ts\`)
144-
- CLI reference markdown files (from \`tools/reference-cli-generate-md.R\`)
143+
echo "pr_url=$pr_url" >> "$GITHUB_OUTPUT"
145144
146-
## Review checklist
147-
- [ ] Spot check a few reference pages render correctly
148-
- [ ] No unexpected deletions
149-
EOF
150-
)"
145+
- name: Trigger preview deployment
146+
if: steps.should-update.outputs.update == 'true'
147+
env:
148+
GH_TOKEN: ${{ github.token }}
149+
run: |
150+
gh pr comment "${{ steps.create-pr.outputs.pr_url }}" --body "/deploy-preview"

0 commit comments

Comments
 (0)