Skip to content

Commit

Permalink
feat: close previous update PRs when a new one is generated
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski committed Sep 25, 2024
1 parent b6808be commit 390e328
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ jobs:
go-version-file: go.mod
- run: go install golang.org/x/tools/cmd/goimports@latest
- uses: arduino/setup-task@v2
- run: wget -O openapi.json https://api.aiven.io/doc/openapi.json
- run: task generate
env:
AIVEN_TOKEN: ${{ secrets.AIVEN_TOKEN }}
AIVEN_PROJECT_NAME: ${{ secrets.AIVEN_PROJECT_NAME }}
- id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: peter-evans/close-pull-request@v2
with:
branch: update/
- uses: peter-evans/create-pull-request@v7
with:
author: GitHub <[email protected]>
Expand Down

0 comments on commit 390e328

Please sign in to comment.