Skip to content

Commit

Permalink
workflow to close PR
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Jul 4, 2024
1 parent 7cdbf46 commit a68e257
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/close-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Close PR

on:
workflow_dispatch:
inputs:
repo:
description: Repo slug where PR should be closed
required: true
type: choice
options:
- k8s-operatorhub/community-operators
- redhat-openshift-ecosystem/community-operators-prod
prNumber:
description: PR number to close
required: true
type: string

jobs:
update:
name: Close PR
runs-on: ubuntu-latest
steps:
- name: Close PR
uses: actions/checkout@v4
run: |
gh pr https://github.com/${{ github.event.inputs.repo }}/pull/${{ github.event.inputs.prNumber }}
env:
GH_TOKEN: ${{ secrets.VM_BOT_GH_TOKEN }}

0 comments on commit a68e257

Please sign in to comment.