Skip to content

Commit bb0404e

Browse files
build: weekly job to update subnets
Signed-off-by: David Dal Busco <[email protected]>
1 parent b89808f commit bb0404e

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update Subnets documentation
2+
3+
on:
4+
schedule:
5+
- cron: "30 4 * * MON"
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-subnets:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Prepare
16+
uses: ./.github/actions/prepare
17+
18+
- name: Update
19+
run: npm run docs:subnets
20+
21+
- name: Check for Changes
22+
run: |
23+
if ! git diff --quiet; then
24+
echo "CHANGES_DETECTED=true" >> $GITHUB_ENV
25+
fi
26+
27+
# This action creates a PR only if there are changes.
28+
- name: Create Pull Request
29+
if: env.CHANGES_DETECTED == 'true'
30+
uses: ./.github/actions/create-pr
31+
with:
32+
branch: bot-cli-docs-update
33+
title: "docs: Update Subnets documentation"
34+
body: |
35+
Modifications have been made to the list of subnets.

0 commit comments

Comments
 (0)