ci(update-changelog): check if PR is available

This commit is contained in:
shivaraj-bh 2024-06-03 13:30:54 +05:30
parent d622396432
commit fbe63417f8

View File

@ -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 }}