Skip to content

Commit 9f25e0c

Browse files
authored
chore(actions): create dependabot.yml (#764)
2 parents c83b93a + a226ee2 commit 9f25e0c

File tree

2 files changed

+80
-2
lines changed

2 files changed

+80
-2
lines changed

.github/dependabot.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for base npm
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
groups:
9+
base-npm-all:
10+
patterns:
11+
- "*"
12+
# Enable version updates for GitHub Actions
13+
- package-ecosystem: "github-actions"
14+
directory: "/"
15+
schedule:
16+
interval: "weekly"
17+
groups:
18+
actions-all:
19+
patterns:
20+
- "*"
21+
# Enable version updates for automations uv
22+
- package-ecosystem: "uv"
23+
directory: "/automations/"
24+
schedule:
25+
interval: "weekly"
26+
groups:
27+
automations-uv-all:
28+
patterns:
29+
- "*"
30+
# Enable version updates for examples uv
31+
- package-ecosystem: "uv"
32+
directory: "/examples/developer-hub-python/"
33+
schedule:
34+
interval: "weekly"
35+
groups:
36+
examples-uv-all:
37+
patterns:
38+
- "*"
39+
# Enable version updates for examples js
40+
- package-ecosystem: "npm"
41+
directory: "/examples/developer-hub-javascript/"
42+
schedule:
43+
interval: "weekly"
44+
groups:
45+
examples-js-all:
46+
patterns:
47+
- "*"
48+
# Enable version updates for examples go
49+
- package-ecosystem: "gomod"
50+
directory: "/examples/developer-hub-go/"
51+
schedule:
52+
interval: "weekly"
53+
groups:
54+
examples-go-all:
55+
patterns:
56+
- "*"
57+
# Enable version updates for examples rust
58+
- package-ecosystem: "cargo"
59+
directory: "/examples/developer-hub-rust/"
60+
schedule:
61+
interval: "weekly"
62+
groups:
63+
examples-rust-all:
64+
patterns:
65+
- "*"

.github/workflows/automatic-feed-request.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,24 @@ jobs:
2828
- name: Install dependencies
2929
run: uv sync
3030
- name: Check for new feeds
31-
run: uv run check_new_feed.py
3231
id: feed
32+
run: |
33+
uv run check_new_feed.py
34+
status=$?
35+
if [ "$status" -eq 78 ]; then
36+
echo "No update needed (exit code 78)."
37+
echo "should_create_issue=false" >> $GITHUB_OUTPUT
38+
exit 0
39+
elif [ "$status" -eq 0 ]; then
40+
echo "should_create_issue=true" >> $GITHUB_OUTPUT
41+
exit 0
42+
else
43+
echo "Script failed with exit code $status"
44+
exit $status
45+
fi
3346
- name: Create issue
3447
uses: JasonEtco/create-an-issue@v2
35-
if: steps.feed.outcome == 'success' && steps.feed.conclusion != 'neutral'
48+
if: steps.feed.outputs.should_create_issue == 'true'
3649
env:
3750
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3851
with:

0 commit comments

Comments
 (0)