Skip to content

Commit

Permalink
ci: add workflow to handle release PR edit
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Sep 14, 2023
1 parent dc178c6 commit b46e940
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/handle-release-pr-title-edit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Handle release PR title edits
on:
pull_request:
types:
- edited
- unlabeled

jobs:
update_pr_content:
name: Update pull request content
if: |
(github.event.type == 'edited' && github.event.changes.title.from != github.event.pull_request.title) ||
(github.event.type == 'unlabeled' && github.event.label.name == 'autorelease: custom version') &&
github.event.pull_request.state == 'open' &&
github.event.sender.login != 'stainless-bot' &&
github.repository == 'Finch-API/finch-api-python'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: stainless-api/trigger-release-please@v1
with:
repo: ${{ github.event.repository.full_name }}
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}

0 comments on commit b46e940

Please sign in to comment.