Skip to content

Commit 46a2c3f

Browse files
committed
fixup
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 3d2d84b commit 46a2c3f

File tree

1 file changed

+60
-32
lines changed

1 file changed

+60
-32
lines changed

.github/workflows/doc-update.yml

Lines changed: 60 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ jobs:
143143
needs: markdown-lint
144144
if: ${{ needs.markdown-lint.outputs.congrats == 'true' }}
145145
runs-on: ubuntu-latest
146+
outputs:
147+
run_id: ${{ github.event.workflow_run.id }}
148+
target_repo: ${{ github.repository }}
149+
pr_number: ${{ github.event.pull_request.number }}
150+
pr_sha: ${{ github.event.pull_request.head.sha }}
151+
artifact_name: ${{ env.markdown_artifact }}
152+
comment_title: ${{ env.markdown_comment_title }}
146153
steps:
147154
- name: Congrats
148155
run: |
@@ -165,9 +172,30 @@ jobs:
165172
path: ${{ env.artifacts_dir }}
166173
name: ${{ env.markdown_artifact }}
167174

175+
pr-comment-markdown-congrats:
176+
name: Create or update congrats comment
177+
needs: pr-markdown-congrats
178+
uses: go-openapi/ci-workflows/.github/workflows/pr-comment.yml@master # <- TODO: caller's ref
179+
secrets: inherit
180+
with:
181+
run_id: ${{ needs.pr-markdown-congrats.outputs.run_id }}
182+
target_repo: ${{ needs.pr-markdown-congrats.outputs.target_repo }}
183+
pr_number: ${{ needs.pr-markdown-congrats.outputs.pr_number }}
184+
pr_sha: ${{ needs.pr-markdown-congrats.outputs.pr_sha }}
185+
artifact_name: ${{ needs.pr-markdown-congrats.outputs.artifact_name }}
186+
comment_title: ${{ needs.pr-markdown-congrats.outputs.comment_title }}
187+
reactions: hooray
188+
168189
pr-markdown-report:
169190
needs: markdown-lint
170191
if: ${{ needs.markdown-lint.outputs.proceed == 'true' }}
192+
outputs:
193+
run_id: ${{ github.event.workflow_run.id }}
194+
target_repo: ${{ github.repository }}
195+
pr_number: ${{ github.event.pull_request.number }}
196+
pr_sha: ${{ github.event.pull_request.head.sha }}
197+
artifact_name: ${{ env.markdown_artifact }}
198+
comment_title: ${{ env.markdown_comment_title }}
171199
runs-on: ubuntu-latest
172200
steps:
173201
- name: Format PR comment
@@ -213,32 +241,18 @@ jobs:
213241
echo "::notice::Commented pull request ${{ github.event.pull_request.number }}"
214242
echo "::debug::${{ steps.comment_formatter.outputs.updated-text }}"
215243
216-
pr-comment-markdown-congrats:
217-
name: Create or update congrats comment
218-
needs: pr-markdown-congrats
219-
uses: go-openapi/ci-workflows/.github/workflows/pr-comment.yml@master # <- TODO: caller's ref
220-
secrets: inherit
221-
with:
222-
run_id: ${{ github.event.workflow_run.id }}
223-
target_repo: ${{ github.repository }}
224-
pr_number: ${{ github.event.pull_request.number }}
225-
pr_sha: ${{github.event.pull_request.head.sha}}
226-
artifact_name: ${{ env.markdown_artifact }}
227-
comment_title: ${{ env.markdown_comment_title }}
228-
reactions: hooray
229-
230244
pr-comment-markdown-report:
231245
name: Create or update comment with report
232246
needs: pr-markdown-report
233247
uses: go-openapi/ci-workflows/.github/workflows/pr-comment.yml@master # <- TODO: caller's ref
234248
secrets: inherit
235249
with:
236-
run_id: ${{ github.event.workflow_run.id }}
237-
target_repo: ${{ github.repository }}
238-
pr_number: ${{ github.event.pull_request.number }}
239-
pr_sha: ${{github.event.pull_request.head.sha}}
240-
artifact_name: ${{ env.markdown_artifact }}
241-
comment_title: ${{ env.markdown_comment_title }}
250+
run_id: ${{ needs.pr-markdown-report.outputs.run_id }}
251+
target_repo: ${{ needs.pr-markdown-report.outputs.target_repo }}
252+
pr_number: ${{ needs.pr-markdown-report.outputs.pr_number }}
253+
pr_sha: ${{ needs.pr-markdown-report.outputs.pr_sha }}
254+
artifact_name: ${{ needs.pr-markdown-report.outputs.artifact_name }}
255+
comment_title: ${{ needs.pr-markdown-report.outputs.comment_title }}
242256
reactions: confused
243257

244258
markdown-spelling:
@@ -322,6 +336,13 @@ jobs:
322336
pr-markdown-spelling-congrats:
323337
needs: markdown-spelling
324338
if: ${{ needs.markdown-spelling.outputs.congrats == 'true' }}
339+
outputs:
340+
run_id: ${{ github.event.workflow_run.id }}
341+
target_repo: ${{ github.repository }}
342+
pr_number: ${{ github.event.pull_request.number }}
343+
pr_sha: ${{ github.event.pull_request.head.sha }}
344+
artifact_name: ${{ env.spelling_artifact }}
345+
comment_title: ${{ env.spelling_comment_title }}
325346
runs-on: ubuntu-latest
326347
steps:
327348
- name: Congrats
@@ -347,17 +368,24 @@ jobs:
347368
uses: go-openapi/ci-workflows/.github/workflows/pr-comment.yml@master # <- TODO: caller's ref
348369
secrets: inherit
349370
with:
350-
run_id: ${{ github.event.workflow_run.id }}
351-
target_repo: ${{ github.repository }}
352-
pr_number: ${{ github.event.pull_request.number }}
353-
pr_sha: ${{github.event.pull_request.head.sha}}
354-
artifact_name: ${{ env.spellcheck_artifact }}
355-
comment_title: ${{ env.spellcheck_comment_title }}
371+
run_id: ${{ needs.pr-markdown-spelling-congrats.outputs.run_id }}
372+
target_repo: ${{ needs.pr-markdown-spelling-congrats.outputs.target_repo }}
373+
pr_number: ${{ needs.pr-markdown-spelling-congrats.outputs.pr_number }}
374+
pr_sha: ${{ needs.pr-markdown-spelling-congrats.outputs.pr_sha }}
375+
artifact_name: ${{ needs.pr-markdown-spelling-congrats.outputs.artifact_name }}
376+
comment_title: ${{ needs.pr-markdown-spelling-congrats.outputs.comment_title }}
356377
reactions: hooray
357378

358379
pr-markdown-spelling-report:
359380
needs: markdown-spelling
360381
if: ${{ needs.markdown-spelling.outputs.proceed == 'true' }}
382+
outputs:
383+
run_id: ${{ github.event.workflow_run.id }}
384+
target_repo: ${{ github.repository }}
385+
pr_number: ${{ github.event.pull_request.number }}
386+
pr_sha: ${{ github.event.pull_request.head.sha }}
387+
artifact_name: ${{ env.spelling_artifact }}
388+
comment_title: ${{ env.spelling_comment_title }}
361389
runs-on: ubuntu-latest
362390
steps:
363391
- name: Format PR comment
@@ -410,10 +438,10 @@ jobs:
410438
secrets: inherit
411439
uses: ./.github/workflows/pr-comment.yml
412440
with:
413-
run_id: ${{ github.event.workflow_run.id }}
414-
target_repo: ${{ github.repository }}
415-
pr_number: ${{ github.event.pull_request.number }}
416-
pr_sha: ${{github.event.pull_request.head.sha}}
417-
artifact_name: ${{ env.spellcheck_artifact }}
418-
comment_title: ${{ env.spellcheck_comment_title }}
441+
run_id: ${{ needs.pr-markdown-spelling-report.outputs.run_id }}
442+
target_repo: ${{ needs.pr-markdown-spelling-report.outputs.target_repo }}
443+
pr_number: ${{ needs.pr-markdown-spelling-report.outputs.pr_number }}
444+
pr_sha: ${{ needs.pr-markdown-spelling-report.outputs.pr_sha }}
445+
artifact_name: ${{ needs.pr-markdown-spelling-report.outputs.artifact_name }}
446+
comment_title: ${{ needs.pr-markdown-spelling-report.outputs.comment_title }}
419447
reactions: confused

0 commit comments

Comments
 (0)