File tree 2 files changed +34
-2
lines changed
2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Markdown Helper
2
2
3
- # Runs only when triggered manually. You can also trigger this action on a schedule or on push or pull request events by changing the on section.
4
3
on :
5
- workflow_dispatch :
4
+ push :
5
+ branches :
6
+ - main
6
7
7
8
jobs :
8
9
build :
Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - main
5
+
6
+ name : ' Trigger: Push action'
7
+ jobs :
8
+ write_good_job :
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ pull-requests : write
12
+ name : A job to lint Markdown files
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : write-good action step
16
+ id : write-good
17
+
18
+ # with:
19
+ # directory: "manuscript" # Optional, uncomment to specify a directory to scan
20
+ # Use the output from the `write-good` step
21
+ - name : Get the write-good output
22
+ run : echo "${{ steps.write-good.outputs.result }}"
23
+ - name : Post comment
24
+ uses : mshick/add-pr-comment@v1
25
+ if : ${{ steps.write-good.outputs.result }}
26
+ with :
27
+ message : |
28
+ ${{ steps.write-good.outputs.result }}
29
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
30
+ repo-token-user-login : ' github-actions[bot]' # The user.login for temporary GitHub tokens
31
+ allow-repeats : false # This is the default
You can’t perform that action at this time.
0 commit comments