Skip to content

Commit cbab6c9

Browse files
Run docs lint only on PRs
Gate lint job to pull_request events and remove lint as a publish dependency so scheduled/push refreshes only require build. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 1db00b2 commit cbab6c9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/Docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ permissions:
3030
jobs:
3131
lint:
3232
name: Lint
33+
if: github.event_name == 'pull_request'
3334
runs-on: ubuntu-24.04
3435
permissions:
3536
contents: read
@@ -94,7 +95,7 @@ jobs:
9495

9596
publish:
9697
name: Publish
97-
needs: [build, lint]
98+
needs: [build]
9899
if: github.event_name != 'pull_request'
99100
runs-on: ubuntu-24.04
100101
environment:

0 commit comments

Comments
 (0)