Skip to content

Commit

Permalink
Add update-data workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-psb committed Jun 25, 2024
1 parent 1dc99e7 commit 177cfb2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/update-data.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 177cfb2

Please sign in to comment.