Skip to content

Commit bd0cfeb

Browse files
authored
Trigger GitHub Actions only when tag is added (#299)
1 parent 7aa19b1 commit bd0cfeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/external-link-tracking.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: External Link Tracking
22

33
on:
44
pull_request:
5+
types: [labeled]
56
paths:
67
- '**/*.mdx'
78
- '**/*.md'
@@ -15,6 +16,9 @@ on:
1516
jobs:
1617
check-external-links:
1718
runs-on: ubuntu-latest
19+
if: |
20+
github.event_name == 'push' ||
21+
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'link-check'))
1822
permissions:
1923
contents: read
2024
pull-requests: write

0 commit comments

Comments
 (0)