-
Notifications
You must be signed in to change notification settings - Fork 34
39 lines (32 loc) · 916 Bytes
/
update-subnets.yml
File metadata and controls
39 lines (32 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update Subnets documentation
on:
schedule:
- cron: "30 8 1 * *"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-subnets:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare
uses: ./.github/actions/prepare
- name: Update
run: npm run docs:subnets
- name: Check for Changes
run: |
if ! git diff --quiet; then
echo "CHANGES_DETECTED=true" >> $GITHUB_ENV
fi
# This action creates a PR only if there are changes.
- name: Create Pull Request
if: env.CHANGES_DETECTED == 'true'
uses: ./.github/actions/create-pr
with:
branch: bot-cli-docs-update
title: "docs: Update Subnets documentation"
body: |
Modifications have been made to the list of subnets.