Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/spec_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
python generate_base_client.py

- name: Close Old Pull Requests
if: steps.git-diff-num.outputs.num-diff != 0
run: |
gh pr list --label "automated-spec-update" --state open --json number --jq '.[].number' | while read -r pr_num; do
echo "Closing old PR #$pr_num"
gh pr close "$pr_num" --delete-branch
done
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v8
Expand All @@ -94,13 +105,12 @@ jobs:
${{ steps.git-diff.outputs.commit}}
branch: ${{ steps.git-branch.outputs.branch }}
delete-branch: true
title: 'Automated Spec Update'
title: 'Automated Spec Update - ${{ steps.current-time.outputs.formattedTime }}'
body: |
${{ steps.git-diff.outputs.commit}}
base: 'main'
team-reviewers: |
owners
maintainers
labels: |
automated-spec-update
draft: false

# - name: Enable Pull Request Automerge
Expand Down
Loading