Skip to content

Commit e5ef3b9

Browse files
chore: Add check ID to docs create workflow (#1501)
* chore: Add check ID to docs create workflow * fix requiredness
1 parent db3a070 commit e5ef3b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docs-preview-create.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
description: 'Branch (eg. my-feature-branch)'
2020
required: true
2121
type: string
22+
check_id:
23+
description: 'The ID of the check that triggered this workflow'
24+
required: false
25+
type: string
2226

2327
permissions:
2428
contents: write
@@ -62,7 +66,7 @@ jobs:
6266
6367
- name: Push
6468
id: push
65-
run: git add -A && git commit -m "sync docs" && git push -u origin ${{ env.BRANCH }} --force
69+
run: git add -A && git commit -m "sync docs for check run ${{ inputs.check_id }}" && git push -u origin ${{ env.BRANCH }} --force
6670

6771
- name: Request preview comment
6872
uses: peter-evans/repository-dispatch@v3

0 commit comments

Comments
 (0)