Skip to content

Commit b9c84e0

Browse files
committed
Refactor GitHub Actions workflow
1 parent 20662ec commit b9c84e0

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

.github/workflows/validate-markdown.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ name: Validate Markdown
22

33
on:
44
# Trigger the workflow on pull request
5-
pull_request_target:
5+
pull_request:
66
branches:
77
- main
88
paths:
99
- '**.md'
1010
- '**.ipynb'
11-
paths-ignore:
12-
- 'translations/**'
13-
- 'translated_images/**'
11+
- '!translations/**'
12+
- '!translated_images/**'
1413

1514
permissions:
1615
contents: read
@@ -23,8 +22,6 @@ jobs:
2322
steps:
2423
- name: Checkout Repo
2524
uses: actions/checkout@v6
26-
with:
27-
ref: ${{ github.event.pull_request.head.sha }}
2825
- name: Check broken Paths
2926
id: check-broken-paths
3027
uses: john0isaac/action-check-markdown@v1.1.0
@@ -41,8 +38,6 @@ jobs:
4138
steps:
4239
- name: Checkout Repo
4340
uses: actions/checkout@v6
44-
with:
45-
ref: ${{ github.event.pull_request.head.sha }}
4641
- name: Run Check paths tracking
4742
id: check-paths-tracking
4843
uses: john0isaac/action-check-markdown@v1.1.0
@@ -59,8 +54,6 @@ jobs:
5954
steps:
6055
- name: Checkout Repo
6156
uses: actions/checkout@v6
62-
with:
63-
ref: ${{ github.event.pull_request.head.sha }}
6457
- name: Run Check URLs tracking
6558
id: check-urls-tracking
6659
uses: john0isaac/action-check-markdown@v1.1.0
@@ -77,8 +70,6 @@ jobs:
7770
steps:
7871
- name: Checkout Repo
7972
uses: actions/checkout@v6
80-
with:
81-
ref: ${{ github.event.pull_request.head.sha }}
8273
- name: Run Check URLs Country Locale
8374
id: check-urls-locale
8475
uses: john0isaac/action-check-markdown@v1.1.0
@@ -94,8 +85,6 @@ jobs:
9485
steps:
9586
- name: Checkout Repo
9687
uses: actions/checkout@v6
97-
with:
98-
ref: ${{ github.event.pull_request.head.sha }}
9988
- name: Run Check Broken URLs
10089
id: check-broken-urls
10190
uses: john0isaac/action-check-markdown@v1.1.0

0 commit comments

Comments
 (0)