Spaces:
Sleeping
Sleeping
fix: remove update docs
Browse files
.github/workflows/update-docs.yml
DELETED
|
@@ -1,58 +0,0 @@
|
|
| 1 |
-
name: Export Superset Tables and Create PR
|
| 2 |
-
|
| 3 |
-
on:
|
| 4 |
-
push:
|
| 5 |
-
branches:
|
| 6 |
-
- main
|
| 7 |
-
- issue-5-superset-token-cache
|
| 8 |
-
workflow_dispatch:
|
| 9 |
-
|
| 10 |
-
jobs:
|
| 11 |
-
export-and-pr:
|
| 12 |
-
runs-on: ubuntu-latest
|
| 13 |
-
|
| 14 |
-
steps:
|
| 15 |
-
- name: Checkout repo
|
| 16 |
-
uses: actions/checkout@v4
|
| 17 |
-
with:
|
| 18 |
-
fetch-depth: 0
|
| 19 |
-
|
| 20 |
-
- name: Set up Python
|
| 21 |
-
uses: actions/setup-python@v5
|
| 22 |
-
with:
|
| 23 |
-
python-version: '3.11'
|
| 24 |
-
|
| 25 |
-
- name: Install dependencies
|
| 26 |
-
run: |
|
| 27 |
-
python -m pip install --upgrade pip
|
| 28 |
-
pip install .
|
| 29 |
-
pip install networkx pyvis
|
| 30 |
-
|
| 31 |
-
- name: Run export commands
|
| 32 |
-
run: |
|
| 33 |
-
python -m scribe_python_client.cli --api-call get-dataset-tables-dict --env dev --username "${{ secrets.SUPERSET_USERNAME }}" --password "${{ secrets.SUPERSET_PASSWORD }}"
|
| 34 |
-
python -m scribe_python_client.cli --api-call get-dataset-tables-md --env dev --username "${{ secrets.SUPERSET_USERNAME }}" --password "${{ secrets.SUPERSET_PASSWORD }}"
|
| 35 |
-
|
| 36 |
-
- name: Bump version
|
| 37 |
-
run: |
|
| 38 |
-
VERSION_FILE="scribe_python_client/version.py"
|
| 39 |
-
OLD_VERSION=$(grep '__version__' $VERSION_FILE | cut -d '"' -f2)
|
| 40 |
-
NEW_VERSION=$(echo $OLD_VERSION | awk -F. -v OFS=. '{$NF += 1 ; print}')
|
| 41 |
-
echo "__version__ = \"$NEW_VERSION\"" > $VERSION_FILE
|
| 42 |
-
echo "Bumped version from $OLD_VERSION to $NEW_VERSION"
|
| 43 |
-
|
| 44 |
-
- name: Create PR
|
| 45 |
-
uses: peter-evans/create-pull-request@v5
|
| 46 |
-
with:
|
| 47 |
-
token: ${{ secrets.GITHUB_TOKEN }}
|
| 48 |
-
commit-message: "Automated update of Superset docs and version bump"
|
| 49 |
-
title: "Update Superset Docs and Version"
|
| 50 |
-
body: |
|
| 51 |
-
This PR was automatically generated by a CI workflow.
|
| 52 |
-
|
| 53 |
-
- Updates: `docs/dataset_tables.json` and `docs/dataset_tables.md`
|
| 54 |
-
- Bumps the version in `scribe_python_client/version.py`
|
| 55 |
-
branch: update-docs
|
| 56 |
-
add-paths: |
|
| 57 |
-
docs/*
|
| 58 |
-
scribe_python_client/version.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|