Skip to content

Commit

Permalink
Close PR in RedHat Operator repo as NGINX Bot
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 committed Jan 18, 2024
1 parent 67477c5 commit 965accf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/close-operator-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Close Operator PR

on:
workflow_dispatch:
inputs:
url:
description: "Operator PR URL to close"
required: true


permissions:
contents: read

jobs:
pr-update:
runs-on: ubuntu-22.04
steps:
- name: Close PR
run: |
gh pr view ${{ inputs.url }}
rc=$?
if [ ${rc} -eq 0 ]; then
echo "Closing PR ${{ inputs.url }}"
gh pr close ${{ inputs.url }}
echo $?
else
echo "${{ inputs.url }} does not exist"
fi
env:
GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}

0 comments on commit 965accf

Please sign in to comment.