-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (37 loc) · 1.25 KB
/
write-good.yml
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
# SPDX-FileCopyrightText: Tom Ross
#
# SPDX-License-Identifier: MIT
#
name: "Write good"
on: # yamllint disable-line rule:truthy
push:
branches: [main, develop, release]
pull_request:
# The branches below must be a subset of the branches above
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
write_good_job:
runs-on: ubuntu-latest
name: "A job to lint Markdown files"
permissions:
contents: read
pull-requests: write
steps:
- name: "🧰 Checkout Source Code"
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: write-good action step
id: write-good
uses: tomwhross/write-good-action@5897a4ff597390bd521c5c3a6c062bf96147a341 # v1.6
# Use the output from the `write-good` step
- name: "Get the write-good output"
run: echo "${{ steps.write-good.outputs.result }}"
- name: "Post comment"
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
if: ${{ steps.write-good.outputs.result }}
with:
message: |
${{ steps.write-good.outputs.result }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: false # This is the default