-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.35 KB
/
comment.yml
File metadata and controls
47 lines (44 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Comment
on:
workflow_call:
inputs:
repository:
description: 'The repository to comment on'
required: false
default: '${{ github.repository }}'
type: string
pull_number:
description: 'The pull request number'
required: false
type: string
template:
description: 'The template name or a lodash style template to use for the comment'
required: false
default: 'sorted_by_result'
type: string
identifier:
description: 'The identifier to use for the sticky comment'
required: false
default: '${{ github.workflow }}-${{ github.job }}'
type: string
permissions:
pull-requests: write
jobs:
comment:
name: Comment
runs-on: ubuntu-latest
steps:
- id: reusable-workflow
uses: ipdxco/reusable-workflow-context@e0cb8a05f123873388b5079c96acfe236f59a870
with:
path: ipdxco/sorted-pr-checks/.github/workflows/comment.yml
- uses: actions/checkout@v5
with:
repository: ipdxco/sorted-pr-checks
path: sorted-pr-checks
ref: ${{ steps.reusable-workflow.outputs.sha }}
- uses: ./sorted-pr-checks
with:
pull_number: ${{ inputs.pull_number }}
template: ${{ inputs.template }}
identifier: ${{ inputs.identifier }}