mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-11 12:26:04 +03:00
ci(update-changelog): check if PR is available
This commit is contained in:
parent
d622396432
commit
fbe63417f8
9
.github/workflows/update-changelog.yaml
vendored
9
.github/workflows/update-changelog.yaml
vendored
@ -38,7 +38,14 @@ jobs:
|
||||
labels: |
|
||||
automated
|
||||
body: ""
|
||||
- run: "gh pr merge --auto --rebase --delete-branch ${{ steps.create-pr.outputs.pull-request-number }}"
|
||||
|
||||
- name: Check if PR is available
|
||||
id: check-pr
|
||||
run: echo "::set-output name=pr-available::${{ steps.create-pr.outputs.pull-request-number != '' }}"
|
||||
|
||||
- name: Merge PR
|
||||
if: steps.check-pr.outputs.pr-available == 'true'
|
||||
run: "gh pr merge --auto --rebase --delete-branch ${{ steps.create-pr.outputs.pull-request-number }}"
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user