Skip to content

Commit ad747a1

Browse files
committed
ci(workflows): reduce Actions noise and flakiness
- commitlint: skip Dependabot/Renovate PRs via actor+branch guards\n- ci: skip vsce packaging and vsix upload on PR events\n- release: guard publish job to tag refs only to avoid stray push runs\n- dependabot-auto-merge: enable auto-merge only if PR state is open
1 parent 0b92b02 commit ad747a1

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ jobs:
6161
run: npm run package
6262

6363
- name: Package VSIX (sanity)
64+
if: github.event_name != 'pull_request'
6465
run: npx --yes @vscode/vsce package
6566

6667
- name: Upload VSIX artifact
67-
if: always()
68+
if: github.event_name != 'pull_request' && always()
6869
uses: actions/upload-artifact@v4
6970
with:
7071
name: vsix

.github/workflows/commitlint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ permissions:
1010

1111
jobs:
1212
lint:
13-
if: github.actor != 'dependabot[bot]'
13+
# Skip bot-authored dependency PRs and bot edits to those PRs
14+
# Commitlint failures on long Dependabot titles are noisy and non-blocking
15+
if: >
16+
github.event.pull_request.user.login != 'dependabot[bot]' &&
17+
!startsWith(github.head_ref, 'dependabot/') &&
18+
!startsWith(github.head_ref, 'renovate/')
1419
runs-on: ubuntu-latest
1520
steps:
1621
- uses: actions/checkout@v5

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
github-token: ${{ secrets.GITHUB_TOKEN }}
2626

2727
- name: Enable auto-merge
28+
if: github.event.pull_request.state == 'open'
2829
uses: peter-evans/enable-pull-request-automerge@v3
2930
with:
3031
token: ${{ secrets.GITHUB_TOKEN }}
3132
pull-request-number: ${{ github.event.pull_request.number }}
3233
merge-method: squash
33-

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ env:
1919

2020
jobs:
2121
publish:
22+
# Extra guard to avoid stray runs if GitHub creates a run on branch pushes
23+
if: startsWith(github.ref, 'refs/tags/')
2224
runs-on: ubuntu-latest
2325
steps:
2426
- name: Checkout

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ node_modules
44
.vscode-test/
55
*.vsix
66
.DS_Store
7+
8+
# Local agent memory
9+
.serena/

0 commit comments

Comments
 (0)