From 177cfb216e95c5a2b8e929849e519e130dad3693 Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Tue, 25 Jun 2024 14:48:13 -0300 Subject: [PATCH] Add update-data workflow --- .github/workflows/update-data.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/update-data.yml diff --git a/.github/workflows/update-data.yml b/.github/workflows/update-data.yml new file mode 100644 index 0000000..df54c03 --- /dev/null +++ b/.github/workflows/update-data.yml @@ -0,0 +1,35 @@ +name: "Update Data Branch" + +on: + workflow_dispatch: + +jobs: + update-data: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + with: + ref: docs-data + + - name: "Set up Python" + uses: "actions/setup-python@v5" + with: + python-version: "3.11" + + - name: "Install System dependencies" + run: | + xargs sudo apt -y install < requirements_system.txt + + - name: "Install Python dependencies" + run: | + pip install --upgrade pip + pip install -r requirements_python.txt + + # experiments with the deps to get it working + # - name: Setup tmate session + # uses: mxschmitt/action-tmate@v3 + + - name: "Generate, commit and push updated openapi specs" + run: | + python -m pulp_docs.openapi data/openapi_json/ -l pulp_ostree + # ./update-data.sh