File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments