Skip to content

Commit 746e343

Browse files
committed
add an action
1 parent 5c9cb51 commit 746e343

File tree

5 files changed

+132
-17
lines changed

5 files changed

+132
-17
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Update Persistence Docs
2+
on:
3+
schedule:
4+
- cron: 0 5 * * MON
5+
workflow_dispatch:
6+
inputs:
7+
targetBranch:
8+
required: false
9+
type: string
10+
default: 'master'
11+
12+
jobs:
13+
update-persistence-docs:
14+
name: Update Parity Docs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout docs
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
path: docs
22+
ref: ${{ github.event.inputs.targetBranch || 'master' }}
23+
24+
- name: Set up Python 3.11
25+
id: setup-python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.11"
29+
30+
- name: Update Coverage Docs with Persistence Coverage
31+
working-directory: docs
32+
run: |
33+
cd scripts/persistence
34+
python3 -m venv .venv
35+
source .venv/bin/activate
36+
pip3 install -r requirements.txt
37+
python3 create_persistence_docs.py
38+
env:
39+
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
40+
41+
- name: Check for changes
42+
id: check-for-changes
43+
working-directory: docs
44+
run: |
45+
# Check if there are changed files and store the result in resources/diff-check.log
46+
# Check against the PR branch if it exists, otherwise against the main
47+
# Store the result in resources/diff-check.log and store the diff count in the GitHub Action output "diff-count"
48+
mkdir -p resources
49+
(git diff --name-only origin/persistence-auto-updates src/data/persistence/ 2>/dev/null || git diff --name-only origin/${{ github.event.inputs.targetBranch || 'master' }} src/data/persistence/ 2>/dev/null) | tee -a resources/diff-check.log
50+
echo "diff-count=$(cat resources/diff-check.log | wc -l)" >> $GITHUB_OUTPUT
51+
cat cat resources/diff-check.log
52+
53+
- name: Create PR
54+
uses: peter-evans/create-pull-request@v7
55+
if: ${{ success() && steps.check-for-changes.outputs.diff-count != '0' && steps.check-for-changes.outputs.diff-count != '' }}
56+
with:
57+
path: docs
58+
title: "Update Persistence Docs"
59+
body: "Updating Persistence Coverage Documentation based on the [Persistence Catalog](https://www.notion.so/localstack/Persistence-Catalog-a9e0e5cb89df4784adb4a1ed377b3c23) on Notion."
60+
branch: "persistence-auto-updates"
61+
author: "LocalStack Bot <localstack-bot@users.noreply.github.com>"
62+
committer: "LocalStack Bot <localstack-bot@users.noreply.github.com>"
63+
commit-message: "update generated persistence docs"
64+
token: ${{ secrets.PRO_ACCESS_TOKEN }}
65+
reviewers: giograno

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,13 @@ pnpm-debug.log*
2020
# macOS-specific files
2121
.DS_Store
2222
.kiro
23-
.vscode
23+
.vscode
24+
25+
# Python
26+
.venv/
27+
__pycache__/
28+
*.pyc
29+
*.pyo
30+
*.pyd
31+
*.pyw
32+
*.pyz

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/docs/aws/services/pinpoint.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: "Pinpoint"
33
description: Get started with Pinpoint on LocalStack
44
tags: ["Ultimate"]
55
persistence: supported
6-
76
---
87

98
import FeatureCoverage from "../../../../components/feature-coverage/FeatureCoverage";

src/data/persistence/coverage.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
"test_suite": true,
2828
"limitations": ""
2929
},
30+
"aiops": {
31+
"service": "aiops",
32+
"full_name": "aiops",
33+
"support": "unknown",
34+
"test_suite": false,
35+
"limitations": ""
36+
},
3037
"amp": {
3138
"service": "amp",
3239
"full_name": "amp",
@@ -1014,6 +1021,13 @@
10141021
"test_suite": false,
10151022
"limitations": ""
10161023
},
1024+
"evs": {
1025+
"service": "evs",
1026+
"full_name": "evs",
1027+
"support": "unknown",
1028+
"test_suite": false,
1029+
"limitations": ""
1030+
},
10171031
"finspace": {
10181032
"service": "finspace",
10191033
"full_name": "finspace",
@@ -1812,6 +1826,13 @@
18121826
"test_suite": false,
18131827
"limitations": ""
18141828
},
1829+
"mpa": {
1830+
"service": "mpa",
1831+
"full_name": "mpa",
1832+
"support": "unknown",
1833+
"test_suite": false,
1834+
"limitations": ""
1835+
},
18151836
"mq": {
18161837
"service": "mq",
18171838
"full_name": "Amazon MQ",
@@ -2575,6 +2596,13 @@
25752596
"test_suite": false,
25762597
"limitations": ""
25772598
},
2599+
"ssm-guiconnect": {
2600+
"service": "ssm-guiconnect",
2601+
"full_name": "ssm-guiconnect",
2602+
"support": "unknown",
2603+
"test_suite": false,
2604+
"limitations": ""
2605+
},
25782606
"ssm-incidents": {
25792607
"service": "ssm-incidents",
25802608
"full_name": "ssm-incidents",
@@ -2694,6 +2722,20 @@
26942722
"test_suite": true,
26952723
"limitations": ""
26962724
},
2725+
"timestream-query": {
2726+
"service": "timestream-query",
2727+
"full_name": "Timestream Query",
2728+
"support": "unknown",
2729+
"test_suite": false,
2730+
"limitations": ""
2731+
},
2732+
"timestream-write": {
2733+
"service": "timestream-write",
2734+
"full_name": "Timestream Write",
2735+
"support": "unknown",
2736+
"test_suite": false,
2737+
"limitations": ""
2738+
},
26972739
"tnb": {
26982740
"service": "tnb",
26992741
"full_name": "tnb",

0 commit comments

Comments
 (0)