Skip to content

Commit d30176a

Browse files
fix: github actions
1 parent 64c4433 commit d30176a

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

Diff for: .github/workflows/accessibility.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Markdown Helper
22

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.
43
on:
5-
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
67

78
jobs:
89
build:

Diff for: .github/workflows/lint.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
uses: tomwhross/[email protected]
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

0 commit comments

Comments
 (0)