Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions .github/workflows/regenerate-api-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ jobs:

- name: Fetch API types and regenerate
env:
PAT: ${{ secrets.PAT_AO_DOC_AUTOMATION }}
API_URL: ${{ secrets.SPLUNK_AO_API_URL }}
BRANCH_NAME: chore/splunk-ao-automation/update-api-client-${{ steps.date.outputs.date }}-${{ github.run_id }}
# Use GITHUB_TOKEN for push so git commits are marked verified by GitHub
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git remote set-url origin https://x-access-token:${PAT}@github.com/splunk/splunk-ao-python.git
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/splunk/splunk-ao-python.git
git checkout -b $BRANCH_NAME
poetry run ./scripts/import-openapi-yaml.sh "$API_URL"
poetry run ./scripts/auto-generate-api-client.sh
Expand Down
Loading
Loading