Skip to content

Add workflow for generating api.json file #1

Add workflow for generating api.json file

Add workflow for generating api.json file #1

Workflow file for this run

name: "Generate REST-API data"
on:
pull_request:
workflow_dispatch:
concurrency:
group: "main-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true
jobs:
update-restapi-data:
runs-on: ubuntu-latest
steps:
# Setup pulp instance
- uses: "actions/checkout@v4"
with:
fetch-depth: 1
repository: "pulp/pulp-openapi-generator"
path: "pulp-openapi-generator"
- uses: "actions/setup-python@v4"
with:
python-version: "3.11"
- name: "Setup and run Pulp instance"
run: "./.github/scripts/setup-pulp.sh"
# Generate api.json
- name: "Generate api.json OpenApi schema"
# Commit api.json
- name: "Configure Git with pulpbot name and email"
run: |
git config --global user.name 'pulpbot'
git config --global user.email '[email protected]'
- name: commit-changes