Skip to content

Commit 6939d73

Browse files
committed
ci: implement Dependabot and optimize GitHub Actions
- Add Dependabot configuration to automatically update dependencies - Monitor npm dependencies and GitHub Actions in workflows - Update Build and Package workflow to exclude unnecessary files - Modify Test Action workflow to use empty default value for region Signed-off-by: diverger <[email protected]>
1 parent c095e5f commit 6939d73

File tree

4 files changed

+56
-2
lines changed

4 files changed

+56
-2
lines changed

.github/dependabot.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Dependabot configuration for GH OBS Helper
2+
# Automatically updates dependencies for npm and GitHub Actions
3+
# See: https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
4+
5+
version: 2
6+
updates:
7+
# Monitor npm dependencies (TypeScript, build tools, etc.)
8+
- package-ecosystem: "npm"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
day: "monday"
13+
time: "09:00"
14+
open-pull-requests-limit: 5
15+
commit-message:
16+
prefix: "npm"
17+
include: "scope"
18+
labels:
19+
- "dependencies"
20+
- "npm"
21+
22+
# Monitor GitHub Actions used in workflows
23+
- package-ecosystem: "github-actions"
24+
directory: "/"
25+
schedule:
26+
interval: "weekly"
27+
day: "monday"
28+
time: "09:00"
29+
open-pull-requests-limit: 3
30+
commit-message:
31+
prefix: "ci"
32+
include: "scope"
33+
labels:
34+
- "dependencies"
35+
- "github-actions"

.github/workflows/build-and-package.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,27 @@ name: Build and Package
33
on:
44
push:
55
branches: [ main, master, develop ]
6+
paths:
7+
- 'src/**'
8+
- 'package*.json'
9+
- 'tsconfig.json'
10+
- 'vitest.config.mjs'
11+
- 'eslint.config.mjs'
12+
- 'action.yml'
13+
- '!.github/workflows/**'
14+
- '!**/*.md'
615
pull_request:
716
branches: [ main, master ]
17+
paths:
18+
- 'src/**'
19+
- 'package*.json'
20+
- 'tsconfig.json'
21+
- 'vitest.config.mjs'
22+
- 'eslint.config.mjs'
23+
- 'action.yml'
24+
- 'build.sh'
25+
- '!.github/workflows/**'
26+
- '!**/*.md'
827
workflow_dispatch:
928

1029
jobs:

.github/workflows/test-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
region:
1818
description: 'OSS Region (e.g., oss-cn-beijing)'
1919
required: false
20-
default: 'oss-cn-beijing'
20+
default: ''
2121
bucket:
2222
description: 'OSS Bucket Name'
2323
required: false

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)