Skip to content

Commit 2cd9e50

Browse files
andykenwardclaude
andauthored
ci: workflow consistency tweaks (#772)
- zizmor: target `pull_request` at `main` to match every other workflow (all PRs base on main), and normalize the two SHA-pin comments to the repo's `#vX.Y.Z` style (no space). - deploy-main: skip docs-only pushes via `paths-ignore: ['**.md']`; the deploy target is `example/`, unaffected by repo markdown, and no cleanup depends on this job running. Deliberately not adding paths-ignore to deploy-delete: deploy.yml creates a preview for every PR (no path filter), so deploy-delete must run on every close to clean up md-only PRs' previews. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2d72915 commit 2cd9e50

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/deploy-main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
paths-ignore:
8+
- '**.md'
79

810
concurrency:
911
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/zizmor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches: [main]
77
pull_request:
8-
branches: ['**']
8+
branches: [main]
99

1010
# Deny all permissions by default; grant only what's needed per job
1111
permissions: {}
@@ -20,9 +20,9 @@ jobs:
2020
actions: read # only needed for private or internal repos
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
2424
with:
2525
persist-credentials: false
2626

2727
- name: Run zizmor
28-
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
28+
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d #v0.5.6

0 commit comments

Comments
 (0)